|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The data model for PolyTreeTable that holds a polyhierarchy.
The TreeModel interface is rewritten here because of following reasons:
isLeaf(), getRoot()
.Nevertheless most method names of PolyTreeTableModel match those of TreeModel and implement the same semantics.
AbstractPolyTreeTableModel
Method Summary | |
PolyTreeNode |
getChild(PolyTreeNode node,
int index)
Returns the child of node at index index. |
int |
getChildCount(PolyTreeNode node)
Returns the number of children of node. |
java.lang.Class |
getColumnClass(int column)
Returns the type for column number column . |
int |
getColumnCount()
Returns the number ofs availible column. |
java.lang.String |
getColumnName(int column)
Returns the name for column number column . |
int |
getIndexOfChild(PolyTreeNode node,
PolyTreeNode child)
Returns the index of child in node. |
int |
getIndexOfParent(PolyTreeNode node,
PolyTreeNode parent)
Returns the index of parent in node. |
PolyTreeNode |
getParent(PolyTreeNode node,
int index)
Returns the parent of node at index index. |
int |
getParentCount(PolyTreeNode node)
Returns the number of parents of node. |
PolyTreeNode |
getStartNode()
Returns the first start node that is never changed (entry point into polyhierarchy). |
java.lang.Object |
getValueAt(PolyTreeNode node,
int column)
Returns the value to be displayed for node node ,
at column number column . |
boolean |
isCellEditable(PolyTreeNode node,
int column)
Indicates whether the the value for node node ,
at column number column is editable. |
boolean |
isChildLeaf(PolyTreeNode node)
Returns true if the passed node has no children or does not allow children. |
boolean |
isParentLeaf(PolyTreeNode node)
Returns true if the passed node has no parents or does not allow parents. |
void |
setValueAt(java.lang.Object aValue,
MutablePolyTreeNode node,
int column)
Sets the value for node node ,
at column number column . |
Method Detail |
public PolyTreeNode getStartNode()
public int getColumnCount()
public java.lang.String getColumnName(int column)
column
.
public java.lang.Class getColumnClass(int column)
column
.
public java.lang.Object getValueAt(PolyTreeNode node, int column)
node
,
at column number column
.
public boolean isCellEditable(PolyTreeNode node, int column)
node
,
at column number column
is editable.
public void setValueAt(java.lang.Object aValue, MutablePolyTreeNode node, int column)
node
,
at column number column
.
public PolyTreeNode getParent(PolyTreeNode node, int index)
public int getParentCount(PolyTreeNode node)
public int getIndexOfParent(PolyTreeNode node, PolyTreeNode parent)
public boolean isParentLeaf(PolyTreeNode node)
public PolyTreeNode getChild(PolyTreeNode node, int index)
public int getChildCount(PolyTreeNode node)
public int getIndexOfChild(PolyTreeNode node, PolyTreeNode child)
public boolean isChildLeaf(PolyTreeNode node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |