You're viewing an older version of Vaadin JavaDoc. Please see version 24.8.0 for the latest.
com.vaadin.base.devserver.themeeditor.

Class ThemeEditorMessageHandler

java.lang.Object
com.vaadin.base.devserver.themeeditor.ThemeEditorMessageHandler

All Implemented Interfaces:

HasSourceModifier, HasThemeModifier

public class ThemeEditorMessageHandler extends Object implements HasSourceModifier, HasThemeModifier

Handler for ThemeEditor debug window communication messages. Responsible for preparing data for ThemeModifier and JavaSourceModifier.

  • Constructor Details

    • ThemeEditorMessageHandler

      public ThemeEditorMessageHandler(VaadinContext context)
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • getState

      public String getState()
    • getSourceModifier

      public JavaSourceModifier getSourceModifier()

      Specified by:

      getSourceModifier in interface HasSourceModifier

    • getThemeModifier

      public ThemeModifier getThemeModifier()

      Specified by:

      getThemeModifier in interface HasThemeModifier

    • canHandle

      public boolean canHandle(String command, elemental.json.JsonObject data)

      Checks if given command can be handled by ThemeEditor.

      Parameters:

      command - command to be verified if supported

      data - data object to be verified if is of proper structure

      Returns:

      true if it can be handled, false otherwise

    • handleDebugMessageData

      public BaseResponse handleDebugMessageData(String command, elemental.json.JsonObject data)

      Handles debug message command and performs given action.

      Parameters:

      command - Command name

      data - Command data

      Returns:

      response in form of JsonObject