|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zul.event.ListDataEvent
public class ListDataEvent
Defines an event that encapsulates changes to a list.
Field Summary | |
---|---|
static int |
CONTENTS_CHANGED
Identifies one or more changes in the lists contents. |
static int |
INTERVAL_ADDED
Identifies the addition of one or more contiguous items to the list. |
static int |
INTERVAL_REMOVED
Identifies the removal of one or more contiguous items from the list. |
static int |
MULTIPLE_CHANGED
Identified the state of Selectable.isMultiple() is changed. |
static int |
SELECTION_CHANGED
Identifies the selection of the lists has changed. |
static int |
STRUCTURE_CHANGED
Identifies the structure of the lists has changed. |
Constructor Summary | |
---|---|
ListDataEvent(ListModel model,
int type,
int index0,
int index1)
Contructor. |
Method Summary | |
---|---|
int |
getIndex0()
Returns the lower index of the change range. |
int |
getIndex1()
Returns the upper index of the change range. |
ListModel |
getModel()
Returns the list model that fires this event. |
int |
getType()
Returns the event type. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
Selectable.getSelection()
.
Moreover, getIndex0()
and getIndex1()
are both meaningless.
public static final int MULTIPLE_CHANGED
Selectable.isMultiple()
is changed.
Constructor Detail |
---|
public ListDataEvent(ListModel model, int type, int index0, int index1)
type
- one of CONTENTS_CHANGED
,
INTERVAL_ADDED
, INTERVAL_REMOVED
.index0
- the lower index of the change range.
For simple element, index0 is the same as index1.
-1 means the first element (the same as 0).index1
- the upper index of the change range.
-1 means the last element.Method Detail |
---|
public ListModel getModel()
public int getType()
CONTENTS_CHANGED
,
INTERVAL_ADDED
, INTERVAL_REMOVED
.
public int getIndex0()
getIndex1()
.
public int getIndex1()
getIndex0()
.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |