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 SummaryFieldsFields inherited from class javax.swing.tree.DefaultMutableTreeNodeallowsChildren, children, EMPTY_ENUMERATION, parent, userObject
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCustomFunctionNode(ComponentScriptEditor editor, String script) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic CustomFunctionNodebooleanbooleanisDummy()booleanisInUse()booleanisValid()voidsetDirty(boolean dirty) voidsetFunction(CustomFunction function) toString()Methods inherited from class javax.swing.tree.DefaultMutableTreeNodeadd, 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- 
CustomFunctionNodeprotected CustomFunctionNode()
- 
CustomFunctionNode
 
- 
- 
Method Details- 
isInUsepublic boolean isInUse()- Specified by:
- isInUsein interface- ComponentScriptEditor.ComponentScriptNode
 
- 
isChangedpublic boolean isChanged()- Specified by:
- isChangedin interface- ComponentScriptEditor.ComponentScriptNode
 
- 
getFunction
- 
setFunction
- 
setDirtypublic void setDirty(boolean dirty) 
- 
isValidpublic boolean isValid()
- 
isDummypublic boolean isDummy()- Returns:
- True if this node is the dummy always present in the tree, used to add new custom functions.
 
- 
toString- Overrides:
- toStringin class- DefaultMutableTreeNode
 
- 
getDummyNode- Returns:
- The dummy node used to create new custom functions
 
 
-