sg.edu.nus.gui.dbview
Class TableNode

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

public class TableNode
extends javax.swing.tree.DefaultMutableTreeNode

A customized node in the DBTree to represent the table in the database

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

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
TableNode(java.lang.String tableName)
          Constructor
 
Method Summary
 java.lang.String getName()
          Return the name of the table
 java.lang.String getNodeType()
           
 boolean getShared()
          Return the share symbol of the table
 boolean isTemShare()
           
 boolean isTemUnshare()
           
 void setName(java.lang.String tableName)
          Set the string value as the name of table
 void setNodeType(java.lang.String nodeType)
           
 void setShared(boolean shared)
          Set the boolean value as the share symbol of table
 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

TableNode

public TableNode(java.lang.String tableName)
Constructor

Parameters:
tableName - - the name of the table
Method Detail

getName

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

Returns:
name of table

setName

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

Parameters:
tableName - - the name of table

getShared

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

Returns:
share symbol

setShared

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

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