mainframe
Class DeviceNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by mainframe.DeviceNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class DeviceNode
extends javax.swing.tree.DefaultMutableTreeNode

This class forces "male" nodes to have leaf icons and forbids male childbaring ability

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
DeviceNode(DeviceInfo info)
           
 
Method Summary
 void add(javax.swing.tree.DefaultMutableTreeNode child)
           
 boolean getAllowsChildren()
           
 boolean isLeaf()
          Override a few methods...
 void remove(javax.swing.tree.DefaultMutableTreeNode child)
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, 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, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeviceNode

public DeviceNode(DeviceInfo info)
Method Detail

isLeaf

public boolean isLeaf()
Override a few methods...

Specified by:
isLeaf in interface javax.swing.tree.TreeNode
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode

getAllowsChildren

public boolean getAllowsChildren()
Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode
Overrides:
getAllowsChildren in class javax.swing.tree.DefaultMutableTreeNode

add

public void add(javax.swing.tree.DefaultMutableTreeNode child)

remove

public void remove(javax.swing.tree.DefaultMutableTreeNode child)