|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zul.AbstractTreeModel
public abstract class AbstractTreeModel
A skeletal implementation for TreeModel.
| Constructor Summary | |
|---|---|
AbstractTreeModel(java.lang.Object root)
Constructor |
|
| Method Summary | |
|---|---|
void |
addTreeDataListener(TreeDataListener l)
Add a listener to the tree that's notified each time a change to the data model occurs |
protected void |
fireEvent(java.lang.Object node,
int indexFrom,
int indexTo,
int evtType)
Fires a TreeDataEvent for all registered listener
Note: you can invoke this method only in an event listener. |
int[] |
getPath(java.lang.Object parent,
java.lang.Object lastNode)
Returns an integer array to represent the path from parent(exclusive) to lastNode(inclusive). |
java.lang.Object |
getRoot()
Return the root of tree |
void |
removeTreeDataListener(TreeDataListener l)
Remove a listener to the tree that's notified each time a change to the data model occurs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.zkoss.zul.TreeModel |
|---|
getChild, getChildCount, isLeaf |
| Constructor Detail |
|---|
public AbstractTreeModel(java.lang.Object root)
root - - root of tree| Method Detail |
|---|
public java.lang.Object getRoot()
getRoot in interface TreeModel
protected void fireEvent(java.lang.Object node,
int indexFrom,
int indexTo,
int evtType)
TreeDataEvent for all registered listener
Note: you can invoke this method only in an event listener.
public int[] getPath(java.lang.Object parent,
java.lang.Object lastNode)
TreeModel
getPath in interface TreeModelparent - the origin of PathlastNode - the destination of Path
public void addTreeDataListener(TreeDataListener l)
TreeModel
addTreeDataListener in interface TreeModell - the listener to addpublic void removeTreeDataListener(TreeDataListener l)
TreeModel
removeTreeDataListener in interface TreeModell - the listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||