Class PathEditor

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.designer.scripteditor.PathEditor
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PathEditor extends JPanel
Encapsulates the UI that lets the user configure the tag change script's options, everything but the script itself.
See Also:
  • Constructor Details

    • PathEditor

      public PathEditor(DesignerContext context, boolean showFullTagTree)
  • Method Details

    • gatewayTagsTree

      public TagSelectionTreePanel gatewayTagsTree()
    • enableEditor

      public void enableEditor(boolean isEnabled)
    • setScript

      public void setScript(TagChangeScript script)
    • getScript

      public TagChangeScript getScript()
    • saveChanges

      public void saveChanges()
    • getCurrentPaths

      public List<String> getCurrentPaths()
      Reads the tag paths currently typed in the editor (one per non-blank line), reflecting unsaved edits rather than the last-saved getScript(). Non-mutating.
    • setChangeTypes

      public void setChangeTypes(Set<FilteredTagChangeListener.TagChangeType> types)
      Selects the change-type checkboxes to match types — live UI state, mirroring the non-mutating getChangeTypes(). Toggles the checkboxes directly and leaves the typed tag paths untouched, so an unsaved path edit is not lost.
    • setPaths

      public void setPaths(List<String> paths)
    • getChangeTypes

      public Set<FilteredTagChangeListener.TagChangeType> getChangeTypes()
      Reads the change types currently selected in the editor's checkboxes — live UI state, not the last-saved getScript(). Non-mutating.