Class MethodDescriptorNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.inductiveautomation.factorypmi.designer.eventhandling.MethodDescriptorNode
- All Implemented Interfaces:
ComponentScriptEditor.ComponentScriptNode
,Serializable
,Cloneable
,MutableTreeNode
,TreeNode
public class MethodDescriptorNode
extends DefaultMutableTreeNode
implements ComponentScriptEditor.ComponentScriptNode
A wrapper around a MethodDescriptor with a link to the containing EventSetDescriptorNode. May also contain
information about a specific component's registered actions for this method.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
boolean
Deprecated.boolean
boolean
isInUse()
boolean
static boolean
Delegates to the descriptor's underlyingMethod
to test for equality, sinceMethodDescriptor
doesn't implement .equals()void
setBuilderInfo
(Map<String, Object> builderInfo) void
setBuilderMode
(int mode) void
setInvokeLater
(boolean invokeLater) void
setJythonCode
(String jythonCode) void
setScopeStyle
(ScriptScopeStyle scopeStyle) toString()
void
updated
(ActionAdapter newAdapter) 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, 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
-
Constructor Details
-
MethodDescriptorNode
-
-
Method Details
-
methodsEqual
Delegates to the descriptor's underlyingMethod
to test for equality, sinceMethodDescriptor
doesn't implement .equals() -
equals
-
getMethodDescriptor
-
getParent
- Specified by:
getParent
in interfaceTreeNode
- Overrides:
getParent
in classDefaultMutableTreeNode
-
getJythonCode
-
setJythonCode
-
getScopeStyle
-
setScopeStyle
-
isInvokeLater
public boolean isInvokeLater() -
setInvokeLater
public void setInvokeLater(boolean invokeLater) -
getBuilderMode
public int getBuilderMode() -
setBuilderMode
public void setBuilderMode(int mode) -
hasScript
Deprecated. -
isChanged
public boolean isChanged()- Specified by:
isChanged
in interfaceComponentScriptEditor.ComponentScriptNode
-
isInUse
public boolean isInUse()- Specified by:
isInUse
in interfaceComponentScriptEditor.ComponentScriptNode
-
updated
-
getBuilderInfo
-
setBuilderInfo
-
toString
- Overrides:
toString
in classDefaultMutableTreeNode
-