public class TreeNodeEx
extends javax.swing.tree.DefaultMutableTreeNode
| Constructor and Description |
|---|
TreeNodeEx(java.lang.String label,
java.awt.Image img)
Constructor for an image based tree node.
|
TreeNodeEx(java.lang.String label,
java.lang.String tname)
Constructor for a text (label) based tree node.
|
TreeNodeEx(java.lang.String label,
java.lang.String tname,
java.lang.String ID)
Constructor that sets the tree node's label, the database table name the object the tree node
represents is from, and the unique ID to reference the table row entry.
|
TreeNodeEx(java.lang.String label,
java.lang.String tname,
java.lang.String ID,
java.lang.String ai)
Constructor that sets the tree node's label, the table name, the unique row id, and the array index
value for the given object data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getActive()
Getter for the active state.
|
java.lang.String |
getArrayIndex()
Getter for the array index.
|
java.lang.String |
getId()
Getter for the object's id.
|
java.awt.Image |
getImage()
Getter for the image of this tree node.
|
int |
getIntArrayIndex()
Getter for the array index.
|
int |
getIntId()
Getter for the object's id.
|
java.lang.String |
getName()
Getter for the name.
|
java.lang.Object |
getStorage()
Getter for the storage object.
|
java.lang.String |
getTableName()
Getter for the table name.
|
void |
setActive(int act)
Sets if the tree node object is active or inactive.
|
void |
setArrayIndex(java.lang.String ai)
Setter for the array index.
|
void |
setId(java.lang.String ID)
Setter for the object's id.
|
void |
setImage(java.awt.Image img)
Setter for the image of this tree node.
|
void |
setName(java.lang.String val)
Setter for the name.
|
void |
setStorage(java.lang.Object storage)
Setter for the storage object.
|
void |
setTableName(java.lang.String tname)
Setter for the table name.
|
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, toStringpublic TreeNodeEx(java.lang.String label,
java.lang.String tname)
label - The label to be displayed on the tree node, in the Tree view.tname - The database table name that the tree node represents.TreeNodepublic TreeNodeEx(java.lang.String label,
java.awt.Image img)
label - The label to be displayed on the tree node, in the Tree view.img - The image to be used in display with the tree node.TreeNodepublic TreeNodeEx(java.lang.String label,
java.lang.String tname,
java.lang.String ID)
label - The label to be displayed on the tree node, in the Tree view.tname - The database table name that the tree node represents.ID - The unique row ID of the object represented by this tree node.TreeNodepublic TreeNodeEx(java.lang.String label,
java.lang.String tname,
java.lang.String ID,
java.lang.String ai)
label - The label to be displayed on the tree node, in the Tree view.tname - The database table name that the tree node represents.ID - The unique row ID of the object represented by this tree node.ai - The array index of the object represented by this tree node.public void setName(java.lang.String val)
val - The name of the tree node.public java.lang.String getName()
public void setArrayIndex(java.lang.String ai)
ai - The array index of the object.public java.lang.String getArrayIndex()
public int getIntArrayIndex()
public void setId(java.lang.String ID)
ID - The object's id.public java.lang.String getId()
public int getIntId()
public void setTableName(java.lang.String tname)
tname - The table name for this object.public java.lang.String getTableName()
public void setActive(int act)
act - Represents if the node is active/inactive.public int getActive()
public void setImage(java.awt.Image img)
img - The image to use when displaying the tree node.public java.awt.Image getImage()
public java.lang.Object getStorage()
public void setStorage(java.lang.Object storage)
storage - The object being stored in this tree node.