abbot.editor
Class ComponentNode

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--abbot.editor.ComponentNode
All Implemented Interfaces:
Cloneable, MutableTreeNode, Serializable, TreeNode

public class ComponentNode
extends DefaultMutableTreeNode

See Also:
Serialized Form

Inner classes inherited from class javax.swing.tree.DefaultMutableTreeNode
DefaultMutableTreeNode.BreadthFirstEnumeration, DefaultMutableTreeNode.PathBetweenNodesEnumeration, DefaultMutableTreeNode.PostorderEnumeration, DefaultMutableTreeNode.PreorderEnumeration
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ComponentNode()
           
ComponentNode(ComponentNode parent, Component comp)
           
ComponentNode(ComponentNode parent, MenuComponent comp)
           
ComponentNode(ComponentNode parent, MenuItem comp)
           
 
Method Summary
 boolean equals(Object other)
          Return true if the represented components are the same.
 TreeNode getChildAt(int index)
           
 int getChildCount()
           
 Component getComponent()
          Returns the Component represented, or null if this is either the root or a java.awt.MenuComponent.
 int hashCode()
           
 void reload()
           
 String toString()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
, add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, 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, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentNode

public ComponentNode()

ComponentNode

public ComponentNode(ComponentNode parent,
                     Component comp)

ComponentNode

public ComponentNode(ComponentNode parent,
                     MenuComponent comp)

ComponentNode

public ComponentNode(ComponentNode parent,
                     MenuItem comp)
Method Detail

getChildAt

public TreeNode getChildAt(int index)
Overrides:
getChildAt in class DefaultMutableTreeNode

getChildCount

public int getChildCount()
Overrides:
getChildCount in class DefaultMutableTreeNode

reload

public void reload()

getComponent

public Component getComponent()
Returns the Component represented, or null if this is either the root or a java.awt.MenuComponent.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Return true if the represented components are the same.
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class DefaultMutableTreeNode


Copyright © 2002-2003 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge