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.JsonObject
Method is used to retrieve the edited Event Stream.void
initialize
(EventStreamContext context, com.inductiveautomation.ignition.common.gson.JsonObject json) Method initializes the ViewModel with the content of an Event Streamprotected void
initializePathList
(String projectName, ExpressionValue path) protected void
void
setPath
(ExpressionValue path) void
setPayload
(ExpressionValue payload) void
setProject
(ExpressionValue project) void
setRemoveServerId
(String serverId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:EventStreamEditorViewModel
Method initializes the ViewModel with the content of an Event Stream- Specified by:
initialize
in 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:EventStreamEditorViewModel
Method is used to retrieve the edited Event Stream.- Specified by:
getConfig
in interfaceEventStreamEditorViewModel
- Returns:
- A json containing the Event Stream config.
-