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 beansEventSetDescriptor
that 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 int
compareTo(EventSetDescriptorNode o)
boolean
equals(java.lang.Object o)
static boolean
eventSetsEqual(java.beans.EventSetDescriptor set1, java.beans.EventSetDescriptor set2)
Uses the eventset name and listener type to evaluate equality, sinceEventSetDescriptor
doesn't implement .equals()static ActionAdapter
getActionAdapter(java.awt.Component bean, java.beans.EventSetDescriptor eventSet, java.beans.MethodDescriptor method)
java.beans.EventSetDescriptor
getEventSet()
MethodDescriptorNode
getFirstRegisteredMethod()
static boolean
isActionRegisteredForEvent(javax.swing.JComponent bean, java.beans.EventSetDescriptor eventSet, java.beans.MethodDescriptor method)
boolean
isChanged()
boolean
isInUse()
java.util.Iterator<MethodDescriptorNode>
iterator()
java.lang.String
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
-
-
-
-
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, sinceEventSetDescriptor
doesn'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:
iterator
in interfacejava.lang.Iterable<MethodDescriptorNode>
-
getEventSet
public java.beans.EventSetDescriptor getEventSet()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
isInUse
public boolean isInUse()
- Specified by:
isInUse
in interfaceComponentScriptEditor.ComponentScriptNode
-
isChanged
public boolean isChanged()
- Specified by:
isChanged
in interfaceComponentScriptEditor.ComponentScriptNode
-
getFirstRegisteredMethod
public MethodDescriptorNode getFirstRegisteredMethod()
-
compareTo
public int compareTo(EventSetDescriptorNode o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<EventSetDescriptorNode>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjavax.swing.tree.DefaultMutableTreeNode
-
-