Class EventSetDescriptorNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- com.inductiveautomation.factorypmi.designer.eventhandling.EventSetDescriptorNode
-
- All Implemented Interfaces:
ComponentScriptEditor.ComponentScriptNode,java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<EventSetDescriptorNode>,java.lang.Iterable<MethodDescriptorNode>,javax.swing.tree.MutableTreeNode,javax.swing.tree.TreeNode
public class EventSetDescriptorNode extends javax.swing.tree.DefaultMutableTreeNode implements java.lang.Comparable<EventSetDescriptorNode>, ComponentScriptEditor.ComponentScriptNode, java.lang.Iterable<MethodDescriptorNode>
This is a wrapper around the beansEventSetDescriptorthat also holds all of the relevant methods as children.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventSetDescriptorNode(java.beans.EventSetDescriptor eventSet, javax.swing.JComponent bean)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EventSetDescriptorNode o)booleanequals(java.lang.Object o)static booleaneventSetsEqual(java.beans.EventSetDescriptor set1, java.beans.EventSetDescriptor set2)Uses the eventset name and listener type to evaluate equality, sinceEventSetDescriptordoesn't implement .equals()static ActionAdaptergetActionAdapter(java.awt.Component bean, java.beans.EventSetDescriptor eventSet, java.beans.MethodDescriptor method)java.beans.EventSetDescriptorgetEventSet()MethodDescriptorNodegetFirstRegisteredMethod()static booleanisActionRegisteredForEvent(javax.swing.JComponent bean, java.beans.EventSetDescriptor eventSet, java.beans.MethodDescriptor method)booleanisChanged()booleanisInUse()java.util.Iterator<MethodDescriptorNode>iterator()java.lang.StringtoString()-
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
-
-
-
-
Method Detail
-
eventSetsEqual
public static boolean eventSetsEqual(java.beans.EventSetDescriptor set1, java.beans.EventSetDescriptor set2)Uses the eventset name and listener type to evaluate equality, sinceEventSetDescriptordoesn't implement .equals()
-
getActionAdapter
public static ActionAdapter getActionAdapter(java.awt.Component bean, java.beans.EventSetDescriptor eventSet, java.beans.MethodDescriptor method)
-
isActionRegisteredForEvent
public static boolean isActionRegisteredForEvent(javax.swing.JComponent bean, java.beans.EventSetDescriptor eventSet, java.beans.MethodDescriptor method)
-
iterator
public java.util.Iterator<MethodDescriptorNode> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<MethodDescriptorNode>
-
getEventSet
public java.beans.EventSetDescriptor getEventSet()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
isInUse
public boolean isInUse()
- Specified by:
isInUsein interfaceComponentScriptEditor.ComponentScriptNode
-
isChanged
public boolean isChanged()
- Specified by:
isChangedin interfaceComponentScriptEditor.ComponentScriptNode
-
getFirstRegisteredMethod
public MethodDescriptorNode getFirstRegisteredMethod()
-
compareTo
public int compareTo(EventSetDescriptorNode o)
- Specified by:
compareToin interfacejava.lang.Comparable<EventSetDescriptorNode>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjavax.swing.tree.DefaultMutableTreeNode
-
-