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 Summary
Fields Modifier and Type Field Description protected CustomFunction
function
-
Constructor Summary
Constructors Modifier Constructor Description protected
CustomFunctionNode()
CustomFunctionNode(ComponentScriptEditor editor, java.lang.String script)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomFunctionNode
getDummyNode()
CustomFunction
getFunction()
boolean
isChanged()
boolean
isDummy()
boolean
isInUse()
boolean
isValid()
void
setDirty(boolean dirty)
void
setFunction(CustomFunction function)
java.lang.String
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 Detail
-
function
protected CustomFunction function
-
-
Constructor Detail
-
CustomFunctionNode
protected CustomFunctionNode()
-
CustomFunctionNode
public CustomFunctionNode(ComponentScriptEditor editor, java.lang.String script)
-
-
Method Detail
-
isInUse
public boolean isInUse()
- Specified by:
isInUse
in interfaceComponentScriptEditor.ComponentScriptNode
-
isChanged
public boolean isChanged()
- Specified by:
isChanged
in interfaceComponentScriptEditor.ComponentScriptNode
-
getFunction
public CustomFunction getFunction()
-
setFunction
public void setFunction(CustomFunction function)
-
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
public java.lang.String toString()
- Overrides:
toString
in classjavax.swing.tree.DefaultMutableTreeNode
-
getDummyNode
public static CustomFunctionNode getDummyNode()
- Returns:
- The dummy node used to create new custom functions
-
-