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 booleanequals(java.lang.Object o)java.util.Map<java.lang.String,java.lang.Object>getBuilderInfo()intgetBuilderMode()java.lang.StringgetJythonCode()java.beans.MethodDescriptorgetMethodDescriptor()EventSetDescriptorNodegetParent()ScriptScopeStylegetScopeStyle()booleanhasScript()Deprecated.booleanisChanged()booleanisInUse()booleanisInvokeLater()static booleanmethodsEqual(java.beans.MethodDescriptor m1, java.beans.MethodDescriptor m2)Delegates to the descriptor's underlyingMethodto test for equality, sinceMethodDescriptordoesn't implement .equals()voidsetBuilderInfo(java.util.Map<java.lang.String,java.lang.Object> builderInfo)voidsetBuilderMode(int mode)voidsetInvokeLater(boolean invokeLater)voidsetJythonCode(java.lang.String jythonCode)voidsetScopeStyle(ScriptScopeStyle scopeStyle)java.lang.StringtoString()voidupdated(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 underlyingMethodto test for equality, sinceMethodDescriptordoesn't implement .equals()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getMethodDescriptor
public java.beans.MethodDescriptor getMethodDescriptor()
-
getParent
public EventSetDescriptorNode getParent()
- Specified by:
getParentin interfacejavax.swing.tree.TreeNode- Overrides:
getParentin 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:
isChangedin interfaceComponentScriptEditor.ComponentScriptNode
-
isInUse
public boolean isInUse()
- Specified by:
isInUsein 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:
toStringin classjavax.swing.tree.DefaultMutableTreeNode
-
-