com.vaadin.base.devserver.themeeditor.
Class ThemeEditorMessageHandler
All Implemented Interfaces:
Handler for ThemeEditor debug window communication messages. Responsible for
preparing data for ThemeModifier
and JavaSourceModifier
.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if given command can be handled by ThemeEditor.
getState()
handleDebugMessageData
(String command, elemental.json.JsonObject data) Handles debug message command and performs given action.
boolean
-
Constructor Details
-
ThemeEditorMessageHandler
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
getState
-
getSourceModifier
Specified by:
getSourceModifier
in interfaceHasSourceModifier
-
getThemeModifier
Specified by:
getThemeModifier
in interfaceHasThemeModifier
-
canHandle
Checks if given command can be handled by ThemeEditor.
Parameters:
command
- command to be verified if supporteddata
- data object to be verified if is of proper structureReturns:
true if it can be handled, false otherwise
-
handleDebugMessageData
Handles debug message command and performs given action.
Parameters:
command
- Command namedata
- Command dataReturns:
response in form of JsonObject
-