Class I18nHandler

java.lang.Object
com.vaadin.copilot.CopilotCommand
com.vaadin.copilot.plugins.i18n.I18nHandler

public class I18nHandler extends CopilotCommand
Command handler for i18n related operations
  • Field Details

    • GET_TRANSLATION_ERROR

      public static final int GET_TRANSLATION_ERROR
      See Also:
    • WRITE_TRANSLATION_ERROR

      public static final int WRITE_TRANSLATION_ERROR
      See Also:
    • SET_TRANSLATABLE_PROPERTY_ERROR

      public static final int SET_TRANSLATABLE_PROPERTY_ERROR
      See Also:
    • GET_TRANSLATABLE_PROPERTY_ERROR

      public static final int GET_TRANSLATABLE_PROPERTY_ERROR
      See Also:
  • Constructor Details

  • Method Details

    • handleMessage

      public boolean handleMessage(String command, com.fasterxml.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
      Description copied from class: CopilotCommand
      Called whenever there is a message from the browser. Implementations should check if the command is for them, handle it and return true if the command was handled.
      Specified by:
      handleMessage in class CopilotCommand
      Parameters:
      command - the command to handle
      data - the data for the command
      devToolsInterface - the devtools interface for the connection
      Returns:
      true if the command was handled, false otherwise