Class EventStreamEditor

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.eventstream.designer.api.EventStreamEditor
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
HandlerEditor, SourceEditor

public abstract class EventStreamEditor extends JPanel
See Also:
  • Constructor Details

    • EventStreamEditor

      public EventStreamEditor()
  • Method Details

    • stopCellEditing

      protected void stopCellEditing()
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • initialize

      public abstract void initialize(EventStreamContext context, com.inductiveautomation.ignition.common.gson.JsonObject json)
      When an Event Stream is opened for editing, this method is called to initialize the editor with the Event Stream configurations.
      Parameters:
      context - Contains methods that's relevant Event Stream related set-up
      json - Contains the Event Stream configuration
    • getConfig

      public abstract com.inductiveautomation.ignition.common.gson.JsonObject getConfig()
      When an Event Stream is saved, this method is called to retrieve the edited Event Stream for saving.
      Returns:
      Configuration for the Event Stream edited by this editor
    • onSave

      public void onSave()

      Called when Event Stream is saved. This call is followed by a call to getConfig(). Any UI component states that needs to be resolved prior to the creation of the Configuration for the Event Stream can be made here.

      This method will also stop the cell editing of all child components contained in this editor. This method can be overridden if that behavior is not desired.

    • dispose

      public void dispose()
      Override this method if there are sources that needs disposing.