|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultMutableTreeNode | +--com.smardec.asc.treetable.TreeTableNode
Sample implementation of TreeTable
node. It extends DefaultMutableTreeNode
and manages the list of it's column values.
Field Summary | |
protected java.util.List |
columnValues
List of column values. |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
TreeTableNode(java.util.List columnValues)
Creates a tree node with specified column values. |
|
TreeTableNode(java.lang.Object[] columnValues)
Creates a tree node with specified column values. |
Method Summary | |
java.lang.Object |
getValueAt(int index)
Returns value for the column. |
boolean |
isEditable(int index)
Indicates whether the value for the column is editable. |
void |
setValueAt(java.lang.Object value,
int index)
Sets the value for the column. |
java.lang.String |
toString()
Returns string presentation of the first value in the list. |
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 |
protected java.util.List columnValues
Constructor Detail |
public TreeTableNode(java.util.List columnValues)
columnValues
- list of column valuespublic TreeTableNode(java.lang.Object[] columnValues)
columnValues
- array of column valuesMethod Detail |
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public java.lang.Object getValueAt(int index)
index
- index of the column
public boolean isEditable(int index)
index
- index of the column
true
if the value is editable, false
otherwise.public void setValueAt(java.lang.Object value, int index)
value
- new valueindex
- index of the column
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |