Class EventSetDescriptorNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.inductiveautomation.factorypmi.designer.eventhandling.EventSetDescriptorNode
- All Implemented Interfaces:
ComponentScriptEditor.ComponentScriptNode
,Serializable
,Cloneable
,Comparable<EventSetDescriptorNode>
,Iterable<MethodDescriptorNode>
,MutableTreeNode
,TreeNode
public class EventSetDescriptorNode
extends DefaultMutableTreeNode
implements Comparable<EventSetDescriptorNode>, ComponentScriptEditor.ComponentScriptNode, Iterable<MethodDescriptorNode>
This is a wrapper around the beans
EventSetDescriptor
that also holds all of the relevant methods as
children.- 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 TypeMethodDescriptionint
boolean
static boolean
eventSetsEqual
(EventSetDescriptor set1, EventSetDescriptor set2) Uses the eventset name and listener type to evaluate equality, sinceEventSetDescriptor
doesn't implement .equals()static ActionAdapter
getActionAdapter
(Component bean, EventSetDescriptor eventSet, MethodDescriptor method) static boolean
isActionRegisteredForEvent
(JComponent bean, EventSetDescriptor eventSet, MethodDescriptor method) boolean
boolean
isInUse()
iterator()
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
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EventSetDescriptorNode
-
-
Method Details
-
eventSetsEqual
Uses the eventset name and listener type to evaluate equality, sinceEventSetDescriptor
doesn't implement .equals() -
getActionAdapter
public static ActionAdapter getActionAdapter(Component bean, EventSetDescriptor eventSet, MethodDescriptor method) -
isActionRegisteredForEvent
public static boolean isActionRegisteredForEvent(JComponent bean, EventSetDescriptor eventSet, MethodDescriptor method) -
iterator
- Specified by:
iterator
in interfaceIterable<MethodDescriptorNode>
-
getEventSet
-
equals
-
isInUse
public boolean isInUse()- Specified by:
isInUse
in interfaceComponentScriptEditor.ComponentScriptNode
-
isChanged
public boolean isChanged()- Specified by:
isChanged
in interfaceComponentScriptEditor.ComponentScriptNode
-
getFirstRegisteredMethod
-
compareTo
- Specified by:
compareTo
in interfaceComparable<EventSetDescriptorNode>
-
toString
- Overrides:
toString
in classDefaultMutableTreeNode
-