Class ThemeEditorMessageHandler
java.lang.Object
com.vaadin.copilot.plugins.themeeditor.ThemeEditorMessageHandler
- All Implemented Interfaces:
CopilotCommand,HasSourceModifier,HasThemeModifier
public class ThemeEditorMessageHandler
extends Object
implements HasSourceModifier, HasThemeModifier, CopilotCommand
Handler for ThemeEditor debug window communication messages. Responsible for
preparing data for
ThemeModifier and
JavaSourceModifier.-
Field Summary
Fields inherited from interface com.vaadin.copilot.CopilotCommand
KEY_CANCEL_REQ_ID, KEY_REQ_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if given command can be handled by ThemeEditor.handleDebugMessageData(String command, elemental.json.JsonObject data) Handles debug message command and performs given action.booleanhandleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.copilot.CopilotCommand
handleConnect
-
Constructor Details
-
ThemeEditorMessageHandler
-
-
Method Details
-
getSourceModifier
- Specified by:
getSourceModifierin interfaceHasSourceModifier
-
getThemeModifier
- Specified by:
getThemeModifierin 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 structure- Returns:
- true if it can be handled, false otherwise
-
handleDebugMessageData
Handles debug message command and performs given action.- Parameters:
command- Command namedata- Command data- Returns:
- response in form of JsonObject
-
registerHandlers
protected void registerHandlers() -
handleMessage
public boolean handleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) - Specified by:
handleMessagein interfaceCopilotCommand
-