org.gswing.components.common.gui
Class ConstituencyNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.gswing.components.common.gui.ConstituencyNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class ConstituencyNode
extends DefaultMutableTreeNode

The node of a constituency tree.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ConstituencyNode(Object name, char type)
          Constructor.
 
Method Summary
 char getType()
          Get the constituency type
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstituencyNode

public ConstituencyNode(Object name,
                        char type)
Constructor.

Parameters:
name - The node / constituency name.
type - The constituency type.
Method Detail

getType

public char getType()
Get the constituency type

Returns:
The constituency type.


Copyright © 2008. All Rights Reserved.