sg.edu.nus.gui.dbview
Class DBTreeNode

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

public class DBTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

Implement node in a DBTree

See Also:
Serialized Form

Field Summary
static int SHARESTATUS_SHARE
           
static int SHARESTATUS_TEMPSHARE
           
static int SHARESTATUS_TEMPUNSHARE
           
static int SHARESTATUS_UNSHARE
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
DBTreeNode()
           
DBTreeNode(java.lang.String name)
          Constructor
DBTreeNode(java.lang.String name, boolean selected)
           
 
Method Summary
 java.lang.String getNodeType()
           
 int getShareStatus()
           
 java.lang.String getSourceSchemaName()
           
 java.util.Vector<java.lang.String> getTargetSchemaName()
           
 boolean isHasInsertIndex()
           
 boolean isSelected()
           
 void setHasInsertIndex(boolean hasInsertIndex)
           
 void setNodeType(java.lang.String nodeType)
           
 void setSelected(boolean selected)
           
 void setShareStatus(int shareStatus)
           
 void setSourceSchemaName(java.lang.String sourceSchemaName)
           
 void setTargetSchemaName(java.util.Vector<java.lang.String> targetSchemaName)
           
 
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
 

Field Detail

SHARESTATUS_SHARE

public static int SHARESTATUS_SHARE

SHARESTATUS_UNSHARE

public static int SHARESTATUS_UNSHARE

SHARESTATUS_TEMPSHARE

public static int SHARESTATUS_TEMPSHARE

SHARESTATUS_TEMPUNSHARE

public static int SHARESTATUS_TEMPUNSHARE
Constructor Detail

DBTreeNode

public DBTreeNode(java.lang.String name,
                  boolean selected)

DBTreeNode

public DBTreeNode()

DBTreeNode

public DBTreeNode(java.lang.String name)
Constructor

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

getNodeType

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

setNodeType

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

getShareStatus

public int getShareStatus()
Returns:
the shareStatus

setShareStatus

public void setShareStatus(int shareStatus)
Parameters:
shareStatus - the shareStatus to set

getSourceSchemaName

public java.lang.String getSourceSchemaName()
Returns:
the sourceSchemaName

setSourceSchemaName

public void setSourceSchemaName(java.lang.String sourceSchemaName)
Parameters:
sourceSchemaName - the sourceSchemaName to set

isSelected

public boolean isSelected()
Returns:
the isSelected

setSelected

public void setSelected(boolean selected)
Parameters:
isSelected - the isSelected to set

getTargetSchemaName

public java.util.Vector<java.lang.String> getTargetSchemaName()
Returns:
the targetSchemaName

setTargetSchemaName

public void setTargetSchemaName(java.util.Vector<java.lang.String> targetSchemaName)
Parameters:
targetSchemaName - the targetSchemaName to set

isHasInsertIndex

public boolean isHasInsertIndex()
Returns:
the hasInsertIndex

setHasInsertIndex

public void setHasInsertIndex(boolean hasInsertIndex)
Parameters:
hasInsertIndex - the hasInsertIndex to set