public class EventSetDescriptorNode extends javax.swing.tree.DefaultMutableTreeNode implements java.lang.Comparable<EventSetDescriptorNode>, ComponentScriptEditor.ComponentScriptNode, java.lang.Iterable<MethodDescriptorNode>
EventSetDescriptor
that also holds all of the relevant methods as
children.Constructor and Description |
---|
EventSetDescriptorNode(java.beans.EventSetDescriptor eventSet,
javax.swing.JComponent bean) |
Modifier and Type | Method and 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, since
EventSetDescriptor 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() |
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
public EventSetDescriptorNode(java.beans.EventSetDescriptor eventSet, javax.swing.JComponent bean)
public static boolean eventSetsEqual(java.beans.EventSetDescriptor set1, java.beans.EventSetDescriptor set2)
EventSetDescriptor
doesn't implement
.equals()public static ActionAdapter getActionAdapter(java.awt.Component bean, java.beans.EventSetDescriptor eventSet, java.beans.MethodDescriptor method)
public static boolean isActionRegisteredForEvent(javax.swing.JComponent bean, java.beans.EventSetDescriptor eventSet, java.beans.MethodDescriptor method)
public java.util.Iterator<MethodDescriptorNode> iterator()
iterator
in interface java.lang.Iterable<MethodDescriptorNode>
public java.beans.EventSetDescriptor getEventSet()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean isInUse()
isInUse
in interface ComponentScriptEditor.ComponentScriptNode
public boolean isChanged()
isChanged
in interface ComponentScriptEditor.ComponentScriptNode
public MethodDescriptorNode getFirstRegisteredMethod()
public int compareTo(EventSetDescriptorNode o)
compareTo
in interface java.lang.Comparable<EventSetDescriptorNode>
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode