|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. |
static int |
MULTIPLE_CHANGED
Identified the state of Selectable.isMultiple() is changed. |
static int |
OPEN_CHANGED
Identifies the open status of the tree has changed. |
static int |
SELECTION_CHANGED
Identifies the selection of the tree has changed. |
static int |
STRUCTURE_CHANGED
Identifies the structure of the tree has changed. |
Constructor Summary | |
---|---|
TreeDataEvent(TreeModel model,
int type,
int[] nodePath,
int indexFrom,
int indexTo)
Constructor. |
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. |
int[] |
getPath()
Returns the path of the affected node. |
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
public static final int SELECTION_CHANGED
public static final int OPEN_CHANGED
public static final int MULTIPLE_CHANGED
Selectable.isMultiple()
is changed.
Constructor Detail |
---|
public TreeDataEvent(TreeModel model, int type, int[] nodePath, int indexFrom, int indexTo)
type
- one of CONTENTS_CHANGED
,
INTERVAL_ADDED
, INTERVAL_REMOVED
, SELECTION_CHANGED
,
OPEN_CHANGED
, STRUCTURE_CHANGED
or MULTIPLE_CHANGED
.nodePath
- the path of the affected node.
If CONTENTS_CHANGED
, INTERVAL_ADDED
or INTERVAL_REMOVED
,
it is the parent node. If SELECTION_CHANGED
or OPEN_CHANGED
,
it is the node being selected or opened.
If STRUCTURE_CHANGED
or MULTIPLE_CHANGED
, it is null.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 int[] getPath()
CONTENTS_CHANGED
, INTERVAL_ADDED
or INTERVAL_REMOVED
,
it is the parent node. If SELECTION_CHANGED
or OPEN_CHANGED
,
it is the node being selected or opened.
If STRUCTURE_CHANGED
or MULTIPLE_CHANGED
, it is null.
public int getIndexFrom()
public int getIndexTo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |