Class IconSetHandler

java.lang.Object
com.vaadin.copilot.CopilotCommand
com.vaadin.copilot.IconSetHandler

public class IconSetHandler extends CopilotCommand
Handles the devtools command for listing icon sets and their available icons.
  • Constructor Details

    • IconSetHandler

      public IconSetHandler()
  • Method Details

    • handleMessage

      public boolean handleMessage(String command, tools.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface)
      Handles the get-available-icons command by returning the detected icon sets.
      Specified by:
      handleMessage in class CopilotCommand
      Parameters:
      command - the incoming command name
      data - the command payload
      devToolsInterface - the devtools transport used for sending the response
      Returns:
      true if the command was handled, false otherwise
    • canBeParallelCommand

      public boolean canBeParallelCommand(String command)
      Checks whether the given command can be handled in parallel.
      Overrides:
      canBeParallelCommand in class CopilotCommand
      Parameters:
      command - the command name to check
      Returns:
      true for get-available-icons, false otherwise