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 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 interface EventStreamEditorViewModel
      Parameters:
      context - Contains useful methods for working with the Event Streams
      json - Contains the Event Stream configuration. Expected to be null when new Event Stream is created.
    • initializeProjectList

      protected void initializeProjectList(GatewayEventHandlerConfig config)
    • initializePathList

      protected void initializePathList(String projectName, ExpressionValue path)
    • setProject

      public void setProject(ExpressionValue project)
    • setPath

      public void setPath(ExpressionValue path)
    • setRemoveServerId

      public void setRemoveServerId(String serverId)
    • setPayload

      public void setPayload(ExpressionValue payload)
    • 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 interface EventStreamEditorViewModel
      Returns:
      A json containing the Event Stream config.