Class CustomFunctionNode
- java.lang.Object
- 
- javax.swing.tree.DefaultMutableTreeNode
- 
- com.inductiveautomation.factorypmi.designer.eventhandling.CustomFunctionNode
 
 
- 
- All Implemented Interfaces:
- ComponentScriptEditor.ComponentScriptNode,- java.io.Serializable,- java.lang.Cloneable,- javax.swing.tree.MutableTreeNode,- javax.swing.tree.TreeNode
 
 public class CustomFunctionNode extends javax.swing.tree.DefaultMutableTreeNode implements ComponentScriptEditor.ComponentScriptNode - See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected CustomFunctionfunction
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedCustomFunctionNode()CustomFunctionNode(ComponentScriptEditor editor, java.lang.String script)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomFunctionNodegetDummyNode()CustomFunctiongetFunction()booleanisChanged()booleanisDummy()booleanisInUse()booleanisValid()voidsetDirty(boolean dirty)voidsetFunction(CustomFunction function)java.lang.StringtoString()- 
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 Detail- 
functionprotected CustomFunction function 
 
- 
 - 
Constructor Detail- 
CustomFunctionNodeprotected CustomFunctionNode() 
 - 
CustomFunctionNodepublic CustomFunctionNode(ComponentScriptEditor editor, java.lang.String script) 
 
- 
 - 
Method Detail- 
isInUsepublic boolean isInUse() - Specified by:
- isInUsein interface- ComponentScriptEditor.ComponentScriptNode
 
 - 
isChangedpublic boolean isChanged() - Specified by:
- isChangedin interface- ComponentScriptEditor.ComponentScriptNode
 
 - 
getFunctionpublic CustomFunction getFunction() 
 - 
setFunctionpublic void setFunction(CustomFunction function) 
 - 
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.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- javax.swing.tree.DefaultMutableTreeNode
 
 - 
getDummyNodepublic static CustomFunctionNode getDummyNode() - Returns:
- The dummy node used to create new custom functions
 
 
- 
 
-