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
ConstructorsModifierConstructorDescriptionprotectedCustomFunctionNode(ComponentScriptEditor editor, String script) -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomFunctionNodebooleanbooleanisDummy()booleanisInUse()booleanisValid()voidsetDirty(boolean dirty) voidsetFunction(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:
isInUsein interfaceComponentScriptEditor.ComponentScriptNode
-
isChanged
public boolean isChanged()- Specified by:
isChangedin 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:
toStringin classDefaultMutableTreeNode
-
getDummyNode
- Returns:
- The dummy node used to create new custom functions
-