edu.iastate.anthill.indus.panel.query
Class TreeColumnNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byedu.iastate.anthill.indus.panel.query.TreeColumnNode
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, IColumn, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class TreeColumnNode
extends javax.swing.tree.DefaultMutableTreeNode
implements java.lang.Comparable, IColumn

Class for tree column node.

Version:
0.2.9
Author:
Jan Seda
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
(package private)  java.lang.String _column
           
private  javax.swing.tree.DefaultMutableTreeNode _parent
          Reference to parent table node.
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
TreeColumnNode(javax.swing.tree.DefaultMutableTreeNode table, java.lang.String column)
          Class constructor.
 
Method Summary
 int compareTo(java.lang.Object obj)
          Interface comparable implementation.
 javax.swing.tree.DefaultMutableTreeNode getColParent()
          Method returns node's parent from tree.
 java.lang.String getFullname()
          Method returns full column name.
 java.lang.String getTable()
          Method returns table name for that column.
 java.lang.String toString()
          Method returns string representing this object.
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_parent

private javax.swing.tree.DefaultMutableTreeNode _parent
Reference to parent table node.


_column

java.lang.String _column
Constructor Detail

TreeColumnNode

public TreeColumnNode(javax.swing.tree.DefaultMutableTreeNode table,
                      java.lang.String column)
Class constructor.

Method Detail

getColParent

public javax.swing.tree.DefaultMutableTreeNode getColParent()
Method returns node's parent from tree.

Returns:
DefaultMutableTreeNode parent node

toString

public java.lang.String toString()
Method returns string representing this object.

Returns:
String

compareTo

public int compareTo(java.lang.Object obj)
Interface comparable implementation.

Specified by:
compareTo in interface java.lang.Comparable
Returns:
int

getFullname

public java.lang.String getFullname()
Method returns full column name.

Specified by:
getFullname in interface IColumn
Returns:
String

getTable

public java.lang.String getTable()
Method returns table name for that column.

Specified by:
getTable in interface IColumn
Returns:
String