Class GatewayEventHandlerEditorViewModel
java.lang.Object
com.inductiveautomation.eventstream.designer.handlers.gatewayevent.GatewayEventHandlerEditorViewModel
- All Implemented Interfaces:
EventStreamEditorViewModel,ViewModel
public class GatewayEventHandlerEditorViewModel
extends Object
implements EventStreamEditorViewModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.inductiveautomation.ignition.common.gson.JsonObjectMethod is used to retrieve the edited Event Stream.voidinitialize(EventStreamContext context, com.inductiveautomation.ignition.common.gson.JsonObject json) Method initializes the ViewModel with the content of an Event Streamprotected voidinitializePathList(String projectName, ExpressionValue path) protected voidvoidsetPath(ExpressionValue path) voidsetPayload(ExpressionValue payload) voidsetProject(ExpressionValue project) voidsetRemoveServerId(String serverId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.eventstream.designer.api.EventStreamEditorViewModel
dispose, onEnabled
-
Constructor Details
-
GatewayEventHandlerEditorViewModel
public GatewayEventHandlerEditorViewModel()
-
-
Method Details
-
initialize
public void initialize(EventStreamContext context, @Nullable com.inductiveautomation.ignition.common.gson.JsonObject json) Description copied from interface:EventStreamEditorViewModelMethod initializes the ViewModel with the content of an Event Stream- Specified by:
initializein interfaceEventStreamEditorViewModel- Parameters:
context- Contains useful methods for working with the Event Streamsjson- Contains the Event Stream configuration. Expected to be null when new Event Stream is created.
-
initializeProjectList
-
initializePathList
-
setProject
-
setPath
-
setRemoveServerId
-
setPayload
-
getConfig
public com.inductiveautomation.ignition.common.gson.JsonObject getConfig()Description copied from interface:EventStreamEditorViewModelMethod is used to retrieve the edited Event Stream.- Specified by:
getConfigin interfaceEventStreamEditorViewModel- Returns:
- A json containing the Event Stream config.
-