sg.edu.nus.gui.dbview
Class ColumnNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by sg.edu.nus.gui.dbview.ColumnNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class ColumnNode
extends javax.swing.tree.DefaultMutableTreeNode

A customized node in the DBTree to represent the column of tables in database

Version:
1.0 2006-12-26
Author:
Huang Yukai, modified by Han Xixian 2008-6-3
See Also:
DefaultMutableTreeNode, TableNode, Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
ColumnNode(java.lang.String columnName)
          Constructor
 
Method Summary
 java.lang.String getName()
          Return the name of the column
 java.lang.String getNodeType()
           
 boolean getShared()
          Return the share symbol of the column
 boolean isTemShare()
           
 boolean isTemUnshare()
           
 void setName(java.lang.String columnName)
          Set the string value as the name of column
 void setNodeType(java.lang.String nodeType)
           
 void setShared(boolean shared)
          Set the boolean value as the share symbol of column
 void setTemShare(boolean temShare)
           
 void setTemUnshare(boolean temUnshare)
           
 
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, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnNode

public ColumnNode(java.lang.String columnName)
Constructor

Parameters:
columnName - - the name of the column
Method Detail

getName

public java.lang.String getName()
Return the name of the column

Returns:
name of column

setName

public void setName(java.lang.String columnName)
Set the string value as the name of column

Parameters:
columnName - - the name of column

getShared

public boolean getShared()
Return the share symbol of the column

Returns:
share symbol

setShared

public void setShared(boolean shared)
Set the boolean value as the share symbol of column

Parameters:
shared - - the share symbol of column

isTemShare

public boolean isTemShare()
Returns:
the temShare

setTemShare

public void setTemShare(boolean temShare)
Parameters:
temShare - the temShare to set

isTemUnshare

public boolean isTemUnshare()
Returns:
the temUnshare

setTemUnshare

public void setTemUnshare(boolean temUnshare)
Parameters:
temUnshare - the temUnshare to set

getNodeType

public java.lang.String getNodeType()
Returns:
the nodeType

setNodeType

public void setNodeType(java.lang.String nodeType)
Parameters:
nodeType - the nodeType to set