Uses of Interface
com.thecoderscorner.menu.remote.commands.MenuCommand
Packages that use MenuCommand
Package
Description
-
Uses of MenuCommand in com.thecoderscorner.menu.mgr
Methods in com.thecoderscorner.menu.mgr with parameters of type MenuCommandModifier and TypeMethodDescriptionvoidMenuManagerServer.sendCommand(MenuCommand command) Send a command to all remotes that are connected.voidServerConnection.sendCommand(MenuCommand command) Send a command to the remotevoidDialogManager.updateStateFromCommand(MenuCommand cmd) Update the dialog from an incoming remote command, checking first if the command is a dialog event, and then updating all the fields and calling dialogDidChange.Method parameters in com.thecoderscorner.menu.mgr with type arguments of type MenuCommandModifier and TypeMethodDescriptionvoidMenuManagerServer.addCustomMessageProcessor(MessageField msgType, BiConsumer<MenuManagerServer, MenuCommand> processor) Allows user level additional message processors for custom messages.voidServerConnection.registerMessageHandler(BiConsumer<ServerConnection, MenuCommand> messageHandler) Register the message handler that will receive all messages from the connection -
Uses of MenuCommand in com.thecoderscorner.menu.remote
Methods in com.thecoderscorner.menu.remote that return MenuCommandModifier and TypeMethodDescriptionMenuCommandProtocol.fromChannel(ByteBuffer buffer) Retrieves a message from the channel, or throws an exception if the message is not fully formed.SharedStreamConnection.readCommandFromStream()Methods in com.thecoderscorner.menu.remote with parameters of type MenuCommandModifier and TypeMethodDescriptionabstract booleanSharedStreamConnection.canSendMessageNow(MenuCommand cmd) booleanStreamRemoteConnector.canSendMessageNow(MenuCommand cmd) MenuCommandProtocol.getProtocolForCmd(MenuCommand command) Checks the message and sees which protocol it will be processed with.voidStreamRemoteConnector.notifyListeners(MenuCommand mc) Helper method that notifies all listeners of a new command messagevoidRemoteConnectorListener.onCommand(RemoteConnector connector, MenuCommand command) Sent by the connector when a message has been decoded.protected voidRemoteMenuController.sendCommand(MenuCommand command) Use to send commands directly.voidRemoteConnector.sendMenuCommand(MenuCommand msg) Sends a command to the menu library running on the embedded hardware.voidSharedStreamConnection.sendMenuCommand(MenuCommand msg) Sends a command to the remote with the protocol and usual headers.voidMenuCommandProtocol.toChannel(ByteBuffer buffer, MenuCommand cmd) Puts the command specified into the byte buffer, it is assumed that the callee will flip the channel once complete.Method parameters in com.thecoderscorner.menu.remote with type arguments of type MenuCommandModifier and TypeMethodDescriptionvoidRemoteMenuController.addCustomMessageProcessor(MessageField msgType, BiConsumer<RemoteMenuController, MenuCommand> processor) Allows user level additional message processors for custom messages. -
Uses of MenuCommand in com.thecoderscorner.menu.remote.commands
Classes in com.thecoderscorner.menu.remote.commands that implement MenuCommandModifier and TypeClassDescriptionclassBootItemMenuCommand<T extends MenuItem,V> classclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclass -
Uses of MenuCommand in com.thecoderscorner.menu.remote.mgrclient
Methods in com.thecoderscorner.menu.remote.mgrclient with parameters of type MenuCommandModifier and TypeMethodDescriptionbooleanSocketServerConnection.canSendMessageNow(MenuCommand cmd) voidSocketServerConnection.sendCommand(MenuCommand command) Method parameters in com.thecoderscorner.menu.remote.mgrclient with type arguments of type MenuCommandModifier and TypeMethodDescriptionvoidSocketServerConnection.registerMessageHandler(BiConsumer<ServerConnection, MenuCommand> messageHandler) -
Uses of MenuCommand in com.thecoderscorner.menu.remote.protocol
Classes in com.thecoderscorner.menu.remote.protocol with type parameters of type MenuCommandModifier and TypeInterfaceDescriptioninterfaceProtocolOutgoingMsgConverter<T extends MenuCommand,B> Methods in com.thecoderscorner.menu.remote.protocol with type parameters of type MenuCommandModifier and TypeMethodDescription<T extends MenuCommand>
voidConfigurableProtocolConverter.addRawOutProcessor(MessageField field, ProtocolOutgoingMsgConverter<T, ByteBuffer> processor, Class<T> clazz) This method adds an addition binary message processor that can convert aMenuCommandinto binary wire format, you must write 4 bytes containing the length first.<T extends MenuCommand>
voidConfigurableProtocolConverter.addTagValOutProcessor(MessageField field, ProtocolOutgoingMsgConverter<T, StringBuilder> processor, Class<T> clazz) This methods adds an additional tag value message processor that can convert aMenuCommandinto the appropriate wire format for sending.Methods in com.thecoderscorner.menu.remote.protocol that return MenuCommandModifier and TypeMethodDescriptionRawProtocolIncomingMsgConverter.apply(ByteBuffer buffer, int len) TagValProtocolIncomingMsgConverter.apply(TagValTextParser parser) ConfigurableProtocolConverter.fromChannel(ByteBuffer buffer) Methods in com.thecoderscorner.menu.remote.protocol that return types with arguments of type MenuCommandMethods in com.thecoderscorner.menu.remote.protocol with parameters of type MenuCommandModifier and TypeMethodDescriptionConfigurableProtocolConverter.getProtocolForCmd(MenuCommand command) ProtocolHelper.protoBufferToText(MenuCommand command) voidConfigurableProtocolConverter.toChannel(ByteBuffer buffer, MenuCommand cmd) Method parameters in com.thecoderscorner.menu.remote.protocol with type arguments of type MenuCommandModifier and TypeMethodDescriptionvoidProtocolHelper.setMessageHandler(BiConsumer<ServerConnection, MenuCommand> handler) -
Uses of MenuCommand in com.thecoderscorner.menu.remote.states
Methods in com.thecoderscorner.menu.remote.states that return MenuCommandMethods in com.thecoderscorner.menu.remote.states with parameters of type MenuCommandModifier and TypeMethodDescriptionbooleanAwaitingBootstrapState.canSendCommandToRemote(MenuCommand command) booleanBootstrapInProgressState.canSendCommandToRemote(MenuCommand command) booleanConnectionHasFailedState.canSendCommandToRemote(MenuCommand command) booleanConnectionReadyState.canSendCommandToRemote(MenuCommand command) booleanJoinMessageArrivedState.canSendCommandToRemote(MenuCommand command) booleanNoOperationInitialState.canSendCommandToRemote(MenuCommand command) booleanPairingAuthFailedState.canSendCommandToRemote(MenuCommand command) booleanPairingAuthSuccessState.canSendCommandToRemote(MenuCommand command) booleanRemoteConnectorState.canSendCommandToRemote(MenuCommand command) called before any command is sent in order for the state to disallowbooleanSendPairingMessageState.canSendCommandToRemote(MenuCommand command) booleanSerialAwaitFirstMsgState.canSendCommandToRemote(MenuCommand command) booleanSocketAwaitJoinState.canSendCommandToRemote(MenuCommand command) booleanStreamNotConnectedState.canSendCommandToRemote(MenuCommand command) protected booleanBaseMessageProcessingState.checkIfThereIsAnHbEnd(MenuCommand cmd) voidRemoteConnectorContext.notifyListeners(MenuCommand mc) protected booleanAwaitingBootstrapState.processMessage(MenuCommand cmd) protected abstract booleanBaseMessageProcessingState.processMessage(MenuCommand cmd) protected booleanBootstrapInProgressState.processMessage(MenuCommand cmd) protected booleanConnectionReadyState.processMessage(MenuCommand cmd) protected booleanJoinMessageArrivedState.processMessage(MenuCommand cmd) protected booleanSendPairingMessageState.processMessage(MenuCommand cmd) protected booleanSerialAwaitFirstMsgState.processMessage(MenuCommand cmd) protected booleanSocketAwaitJoinState.processMessage(MenuCommand cmd)