| Modifier and Type | Field and Description |
|---|---|
| pack-priv TreeAdaptor | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addTreeModelListener(TreeModelListener
the listener to add treeModelListener)Implements javax. TreeModelEvent
posted after the tree changes.
|
| public Object | getChild(Object
a node in the tree, obtained from this data source parent, int index of child to be returned index)Implements javax. parent at index index
in the parent's
child array.
|
| public int | getChildCount(Object
a node in the tree, obtained from this data source parent)Implements javax. parent.
|
| public int | getIndexOfChild(Object
a node in the tree, obtained from this data source parent, Object the node we are interested in child)Implements javax. |
| public Object | |
| public boolean | isLeaf(Object
a node in the tree, obtained from this data source node)Implements javax. true if node is a leaf.
|
| public void | removeTreeModelListener(TreeModelListener
the listener to remove treeModelListener)Implements javax. addTreeModelListener.
|
| public void | valueForPathChanged(TreePath
path to the node that the user has altered treePath, Object the new value from the TreeCellEditor o)Implements javax. path to newValue.
|
| adaptor | back to summary |
|---|---|
| pack-priv TreeAdaptor adaptor | |
| root | back to summary |
|---|---|
| pack-priv Object root | |
| JTreeASTModel | back to summary |
|---|---|
| public JTreeASTModel(TreeAdaptor adaptor, Object root) | |
| JTreeASTModel | back to summary |
|---|---|
| public JTreeASTModel(Object root) | |
| addTreeModelListener | back to summary |
|---|---|
| public void addTreeModelListener(TreeModelListener treeModelListener) Implements javax. Doc from javax. Adds a listener for the
| |
| getChild | back to summary |
|---|---|
| public Object getChild(Object parent, int index) Implements javax. Doc from javax. Returns the child of | |
| getChildCount | back to summary |
|---|---|
| public int getChildCount(Object parent) Implements javax. Doc from javax. Returns the number of children of | |
| getIndexOfChild | back to summary |
|---|---|
| public int getIndexOfChild(Object parent, Object child) Implements javax. Doc from javax. Returns the index of child in parent. If either | |
| getRoot | back to summary |
|---|---|
| public Object getRoot() Implements javax. Doc from javax. Returns the root of the tree. Returns | |
| isLeaf | back to summary |
|---|---|
| public boolean isLeaf(Object node) Implements javax. Doc from javax. Returns | |
| removeTreeModelListener | back to summary |
|---|---|
| public void removeTreeModelListener(TreeModelListener treeModelListener) Implements javax. Doc from javax. Removes a listener previously added with
| |
| valueForPathChanged | back to summary |
|---|---|
| public void valueForPathChanged(TreePath treePath, Object o) Implements javax. Doc from javax. Messaged when the user has altered the value for the item identified
by | |