Class CustomMethodNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.inductiveautomation.perspective.designer.workspace.scriptseditor.CustomMethodNode
- All Implemented Interfaces:
ScriptTreeNode, Serializable, Cloneable, MutableTreeNode, TreeNode
- See Also:
-
Field Summary
Fields inherited from class DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()com.inductiveautomation.perspective.designer.workspace.scriptseditor.MutableCustomMethodConfigbooleanvoidReset the node's dirty state to match the just-persisted resource.Methods inherited from class DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ScriptTreeNode
isMeta, onDoubleClick
-
Method Details
-
makeKey
-
getMutableConfig
public com.inductiveautomation.perspective.designer.workspace.scriptseditor.MutableCustomMethodConfig getMutableConfig() -
createEditor
- Specified by:
createEditorin interfaceScriptTreeNode
-
isChanged
public boolean isChanged()- Specified by:
isChangedin interfaceScriptTreeNode
-
markClean
public void markClean()Description copied from interface:ScriptTreeNodeReset the node's dirty state to match the just-persisted resource. Called by the scripts editor's apply flow after the underlyingScriptConfighas been written. Implementations that track dirty state via a pristine snapshot should rebind that snapshot to current state here soScriptTreeNode.isChanged()returnsfalseuntil the next user edit.- Specified by:
markCleanin interfaceScriptTreeNode
-
getIcon
- Specified by:
getIconin interfaceScriptTreeNode
-
getPopupActions
- Specified by:
getPopupActionsin interfaceScriptTreeNode
-