Package com.vaadin.copilot
Class IconSetHandler
java.lang.Object
com.vaadin.copilot.CopilotCommand
com.vaadin.copilot.IconSetHandler
Handles the devtools command for listing icon sets and their available icons.
-
Field Summary
Fields inherited from class com.vaadin.copilot.CopilotCommand
currentSession, KEY_CANCEL_REQ_ID, KEY_REQ_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeParallelCommand(String command) Checks whether the given command can be handled in parallel.booleanhandleMessage(String command, tools.jackson.databind.JsonNode data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) Handles theget-available-iconscommand by returning the detected icon sets.Methods inherited from class com.vaadin.copilot.CopilotCommand
getProjectFileManager, getVaadinContext, getVaadinSession, handleConnect
-
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 theget-available-iconscommand by returning the detected icon sets.- Specified by:
handleMessagein classCopilotCommand- Parameters:
command- the incoming command namedata- the command payloaddevToolsInterface- the devtools transport used for sending the response- Returns:
trueif the command was handled,falseotherwise
-
canBeParallelCommand
Checks whether the given command can be handled in parallel.- Overrides:
canBeParallelCommandin classCopilotCommand- Parameters:
command- the command name to check- Returns:
trueforget-available-icons,falseotherwise
-