Class CustomMethodNode

java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.inductiveautomation.perspective.designer.workspace.scriptseditor.CustomMethodNode
All Implemented Interfaces:
ScriptTreeNode, Serializable, Cloneable, MutableTreeNode, TreeNode

public class CustomMethodNode extends DefaultMutableTreeNode implements ScriptTreeNode
See Also:
  • Method Details

    • makeKey

      public static org.apache.commons.lang3.tuple.Pair<String,String> makeKey(String methodName)
    • getMutableConfig

      public com.inductiveautomation.perspective.designer.workspace.scriptseditor.MutableCustomMethodConfig getMutableConfig()
    • createEditor

      public Optional<CommitablePanel> createEditor()
      Specified by:
      createEditor in interface ScriptTreeNode
    • isChanged

      public boolean isChanged()
      Specified by:
      isChanged in interface ScriptTreeNode
    • markClean

      public void markClean()
      Description copied from interface: ScriptTreeNode
      Reset the node's dirty state to match the just-persisted resource. Called by the scripts editor's apply flow after the underlying ScriptConfig has been written. Implementations that track dirty state via a pristine snapshot should rebind that snapshot to current state here so ScriptTreeNode.isChanged() returns false until the next user edit.
      Specified by:
      markClean in interface ScriptTreeNode
    • getIcon

      public Optional<Icon> getIcon()
      Specified by:
      getIcon in interface ScriptTreeNode
    • getPopupActions

      public List<Action> getPopupActions()
      Specified by:
      getPopupActions in interface ScriptTreeNode