Package com.vaadin.copilot
Class Copilot
java.lang.Object
com.vaadin.copilot.Copilot
- All Implemented Interfaces:
DevToolsMessageHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleConnect(DevToolsInterface devToolsInterface) Called when a browser connects.booleanhandleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) Called when a message from the browser arrives.static booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.base.devserver.DevToolsMessageHandler
handleDisconnect
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
Copilot
public Copilot()
-
-
Method Details
-
handleConnect
Description copied from interface:DevToolsMessageHandlerCalled when a browser connects.This happens on each refresh but also when the application is opened in a new browser tab or window.
- Specified by:
handleConnectin interfaceDevToolsMessageHandler- Parameters:
devToolsInterface- for interaction with the development tools, e.g. sending a message
-
handleMessage
public boolean handleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) Description copied from interface:DevToolsMessageHandlerCalled when a message from the browser arrives.- Specified by:
handleMessagein interfaceDevToolsMessageHandler- Parameters:
command- the command receiveddata- the data receiveddevToolsInterface- for interaction with the development tools, e.g. sending a message- Returns:
trueif the message was handled and should not be passed on to further handlers
-
isDevelopmentMode
public static boolean isDevelopmentMode()
-