|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zul.event.TreeDataEvent<E>
public class TreeDataEvent<E>
Defines an event that encapsulates changes to a tree.
| Field Summary | |
|---|---|
static int |
CONTENTS_CHANGED
Identifies changing contents of nodes. |
static int |
INTERVAL_ADDED
Identifies the addition of children to a node. |
static int |
INTERVAL_REMOVED
Identifies the removal of children to a node. |
static int |
STRUCTURE_CHANGED
Identifies the structure of the tree has changed. |
| Constructor Summary | |
|---|---|
TreeDataEvent(TreeModel<E> model,
int type,
E parent,
int indexFrom,
int indexTo)
Contructor. |
|
| Method Summary | |
|---|---|
int |
getIndexFrom()
Return the lower index of the change range |
int |
getIndexTo()
Return the upper index of the change range |
TreeModel |
getModel()
Returns the tree model that fires this event. |
E |
getParent()
Returns the parent node that one of its children being modified |
int |
getType()
Returns the event type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CONTENTS_CHANGED
public static final int INTERVAL_ADDED
public static final int INTERVAL_REMOVED
public static final int STRUCTURE_CHANGED
| Constructor Detail |
|---|
public TreeDataEvent(TreeModel<E> model,
int type,
E parent,
int indexFrom,
int indexTo)
type - one of CONTENTS_CHANGED,
INTERVAL_ADDED, or INTERVAL_REMOVED.parent - - the parent node that its children being modified .indexFrom - the lower index of the change rangeindexTo - the upper index of the change range| Method Detail |
|---|
public TreeModel getModel()
public int getType()
CONTENTS_CHANGED,
INTERVAL_ADDED, or INTERVAL_REMOVED.
public E getParent()
public int getIndexFrom()
public int getIndexTo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||