|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zul.event.TreeDataEvent
public class TreeDataEvent
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. |
Constructor Summary | |
---|---|
TreeDataEvent(TreeModel model,
int type,
java.lang.Object 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. |
java.lang.Object |
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
Constructor Detail |
---|
public TreeDataEvent(TreeModel model, int type, java.lang.Object 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 rangeMethod Detail |
---|
public TreeModel getModel()
public int getType()
CONTENTS_CHANGED
,
INTERVAL_ADDED
, or INTERVAL_REMOVED
.
public java.lang.Object getParent()
public int getIndexFrom()
public int getIndexTo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |