|
NextApp Echo3 Extras v3.0.b8 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TreeModel
Model for representing tree data.
| Method Summary | |
|---|---|
void |
addTreeModelListener(TreeModelListener l)
Adds a TreeModelListener to receive notification of events. |
Object |
getChild(Object parent,
int index)
Returns the child of the specified parent node at the specified index. |
int |
getChildCount(Object parent)
Returns the number of child nodes in the specified parent. |
Class |
getColumnClass(int index)
Returns the type for the specified column index. |
int |
getColumnCount()
Returns the number of available columns. |
String |
getColumnName(int index)
Returns the name for the specified column index. |
int |
getIndexOfChild(Object parent,
Object child)
Returns the index of the child within the parent. |
Object |
getRoot()
Returns the root node of the tree. |
Object |
getValueAt(Object node,
int columnIndex)
Returns the value to be displayed for node node,
at column number columnIndex. |
boolean |
isLeaf(Object object)
Determines whether the specified node is a leaf. |
void |
removeTreeModelListener(TreeModelListener l)
Removes a TreeModelListener from receiving notification of events. |
| Method Detail |
|---|
void addTreeModelListener(TreeModelListener l)
TreeModelListener to receive notification of events.
l - the listener to remove
Object getChild(Object parent,
int index)
parent - the parent nodeindex - the child index
int getChildCount(Object parent)
parent - the parent node
Class getColumnClass(int index)
index - the column index
int getColumnCount()
String getColumnName(int index)
index - the column index
int getIndexOfChild(Object parent,
Object child)
parent - the parent nodechild - the child nodeObject getRoot()
Object getValueAt(Object node,
int columnIndex)
node,
at column number columnIndex.
columnIndex - the column index
boolean isLeaf(Object object)
object - the node object
void removeTreeModelListener(TreeModelListener l)
TreeModelListener from receiving notification of events.
l - the listener to remove
|
NextApp Echo3 Extras v3.0.b8 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||