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 TypeMethodDescriptionintbooleanstatic booleaneventSetsEqual(EventSetDescriptor set1, EventSetDescriptor set2) Uses the eventset name and listener type to evaluate equality, sinceEventSetDescriptordoesn't implement .equals()static ActionAdaptergetActionAdapter(Component bean, EventSetDescriptor eventSet, MethodDescriptor method) static booleanisActionRegisteredForEvent(JComponent bean, EventSetDescriptor eventSet, MethodDescriptor method) booleanbooleanisInUse()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, setUserObjectMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EventSetDescriptorNode
-
-
Method Details
-
eventSetsEqual
Uses the eventset name and listener type to evaluate equality, sinceEventSetDescriptordoesn'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:
iteratorin interfaceIterable<MethodDescriptorNode>
-
getEventSet
-
equals
-
isInUse
public boolean isInUse()- Specified by:
isInUsein interfaceComponentScriptEditor.ComponentScriptNode
-
isChanged
public boolean isChanged()- Specified by:
isChangedin interfaceComponentScriptEditor.ComponentScriptNode
-
getFirstRegisteredMethod
-
compareTo
- Specified by:
compareToin interfaceComparable<EventSetDescriptorNode>
-
toString
- Overrides:
toStringin classDefaultMutableTreeNode
-