|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo.extras.app.tree.AbstractTreeModel
echopoint.tree.DefaultTreeModel
public class DefaultTreeModel
A simple tree model that uses TreeNodes.
| Field Summary | |
|---|---|
protected TreeNode |
root
Root of the tree. |
| Fields inherited from class nextapp.echo.extras.app.tree.AbstractTreeModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
DefaultTreeModel(TreeNode root)
Creates a tree with the specified root node. |
|
| Method Summary | |
|---|---|
void |
addChild(DefaultMutableTreeNode parent,
DefaultMutableTreeNode child)
|
Object |
getChild(Object parent,
int index)
Returns the child of parent at index index in the parent's child array. |
int |
getChildCount(Object parent)
Returns the number of children of parent . |
int |
getColumnCount()
|
int |
getIndexOfChild(Object parent,
Object child)
Returns the index of child in parent. |
Object |
getRoot()
Returns the root of the tree. |
Object |
getValueAt(Object node,
int column)
|
boolean |
isLeaf(Object node)
Returns whether the specified node is a leaf node. |
void |
removeChild(DefaultMutableTreeNode parent,
DefaultMutableTreeNode child)
|
| Methods inherited from class nextapp.echo.extras.app.tree.AbstractTreeModel |
|---|
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getColumnClass, getColumnName, removeTreeModelListener, valueForPathChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TreeNode root
| Constructor Detail |
|---|
public DefaultTreeModel(TreeNode root)
root - a TreeNode object that is the root of the tree| Method Detail |
|---|
public Object getChild(Object parent,
int index)
parent - a node in the tree, obtained from this data source
public int getChildCount(Object parent)
parent - a node in the tree, obtained from this data source
public int getColumnCount()
public int getIndexOfChild(Object parent,
Object child)
public Object getRoot()
public Object getValueAt(Object node,
int column)
public boolean isLeaf(Object node)
askAllowsChildren setting.
public void addChild(DefaultMutableTreeNode parent,
DefaultMutableTreeNode child)
public void removeChild(DefaultMutableTreeNode parent,
DefaultMutableTreeNode child)
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||