Class CustomFunctionNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.inductiveautomation.factorypmi.designer.eventhandling.CustomFunctionNode
- All Implemented Interfaces:
ComponentScriptEditor.ComponentScriptNode
,Serializable
,Cloneable
,MutableTreeNode
,TreeNode
public class CustomFunctionNode
extends DefaultMutableTreeNode
implements ComponentScriptEditor.ComponentScriptNode
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CustomFunctionNode
(ComponentScriptEditor editor, String script) -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomFunctionNode
boolean
boolean
isDummy()
boolean
isInUse()
boolean
isValid()
void
setDirty
(boolean dirty) void
setFunction
(CustomFunction function) toString()
Methods inherited from class javax.swing.tree.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
-
Field Details
-
function
-
-
Constructor Details
-
CustomFunctionNode
protected CustomFunctionNode() -
CustomFunctionNode
-
-
Method Details
-
isInUse
public boolean isInUse()- Specified by:
isInUse
in interfaceComponentScriptEditor.ComponentScriptNode
-
isChanged
public boolean isChanged()- Specified by:
isChanged
in interfaceComponentScriptEditor.ComponentScriptNode
-
getFunction
-
setFunction
-
setDirty
public void setDirty(boolean dirty) -
isValid
public boolean isValid() -
isDummy
public boolean isDummy()- Returns:
- True if this node is the dummy always present in the tree, used to add new custom functions.
-
toString
- Overrides:
toString
in classDefaultMutableTreeNode
-
getDummyNode
- Returns:
- The dummy node used to create new custom functions
-