Class MethodDescriptorNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- com.inductiveautomation.factorypmi.designer.eventhandling.MethodDescriptorNode
-
- All Implemented Interfaces:
ComponentScriptEditor.ComponentScriptNode
,java.io.Serializable
,java.lang.Cloneable
,javax.swing.tree.MutableTreeNode
,javax.swing.tree.TreeNode
public class MethodDescriptorNode extends javax.swing.tree.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodDescriptorNode(java.beans.MethodDescriptor method, ActionAdapter adapter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.lang.Object>
getBuilderInfo()
int
getBuilderMode()
java.lang.String
getJythonCode()
java.beans.MethodDescriptor
getMethodDescriptor()
EventSetDescriptorNode
getParent()
ScriptScopeStyle
getScopeStyle()
boolean
hasScript()
Deprecated.boolean
isChanged()
boolean
isInUse()
boolean
isInvokeLater()
static boolean
methodsEqual(java.beans.MethodDescriptor m1, java.beans.MethodDescriptor m2)
Delegates to the descriptor's underlyingMethod
to test for equality, sinceMethodDescriptor
doesn't implement .equals()void
setBuilderInfo(java.util.Map<java.lang.String,java.lang.Object> builderInfo)
void
setBuilderMode(int mode)
void
setInvokeLater(boolean invokeLater)
void
setJythonCode(java.lang.String jythonCode)
void
setScopeStyle(ScriptScopeStyle scopeStyle)
java.lang.String
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 Detail
-
MethodDescriptorNode
public MethodDescriptorNode(java.beans.MethodDescriptor method, ActionAdapter adapter)
-
-
Method Detail
-
methodsEqual
public static boolean methodsEqual(java.beans.MethodDescriptor m1, java.beans.MethodDescriptor m2)
Delegates to the descriptor's underlyingMethod
to test for equality, sinceMethodDescriptor
doesn't implement .equals()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getMethodDescriptor
public java.beans.MethodDescriptor getMethodDescriptor()
-
getParent
public EventSetDescriptorNode getParent()
- Specified by:
getParent
in interfacejavax.swing.tree.TreeNode
- Overrides:
getParent
in classjavax.swing.tree.DefaultMutableTreeNode
-
getJythonCode
public java.lang.String getJythonCode()
-
setJythonCode
public void setJythonCode(java.lang.String jythonCode)
-
getScopeStyle
public ScriptScopeStyle getScopeStyle()
-
setScopeStyle
public void setScopeStyle(ScriptScopeStyle scopeStyle)
-
isInvokeLater
public boolean isInvokeLater()
-
setInvokeLater
public void setInvokeLater(boolean invokeLater)
-
getBuilderMode
public int getBuilderMode()
-
setBuilderMode
public void setBuilderMode(int mode)
-
hasScript
@Deprecated public boolean hasScript()
Deprecated.
-
isChanged
public boolean isChanged()
- Specified by:
isChanged
in interfaceComponentScriptEditor.ComponentScriptNode
-
isInUse
public boolean isInUse()
- Specified by:
isInUse
in interfaceComponentScriptEditor.ComponentScriptNode
-
updated
public void updated(ActionAdapter newAdapter)
-
getBuilderInfo
public java.util.Map<java.lang.String,java.lang.Object> getBuilderInfo()
-
setBuilderInfo
public void setBuilderInfo(java.util.Map<java.lang.String,java.lang.Object> builderInfo)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjavax.swing.tree.DefaultMutableTreeNode
-
-