public class GroupsDataEvent extends Object
GroupsModel,
GroupsDataListener| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENTS_CHANGED
Identifies one or more changes in the contents of a particular group.
|
static int |
DISABLE_CLIENT_UPDATE
Identified the state that Component's client update to be disabled
|
static int |
ENABLE_CLIENT_UPDATE
Identified the state that Component's client update to be enabled
|
static int |
GROUPS_ADDED
Identifies the addition of one or more contiguous items to the list.
|
static int |
GROUPS_CHANGED
Identifies one or more changes in the groups contents.
|
static int |
GROUPS_OPENED
Identifies the Group opened.
|
static int |
GROUPS_REMOVED
Identifies the removal of one or more contiguous items from the list.
|
static int |
GROUPS_RESET
Identifies the Group is reset.
|
static int |
INTERVAL_ADDED
Identifies the addition of one or more contiguous items to a
particular group.
|
static int |
INTERVAL_REMOVED
Identifies the removal of one or more contiguous items from a
particular group.
|
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 and Description |
|---|
GroupsDataEvent(GroupsModel model,
int type,
int groupIndex,
int index0,
int index1)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getGroupIndex()
Returns the index of the group.
|
int |
getIndex0()
Returns the lower index of the change range.
|
int |
getIndex1()
Returns the upper index of the change range.
|
GroupsModel |
getModel()
Returns the list model that fires this event.
|
int |
getType()
Returns the event type.
|
String |
toString() |
public static final int CONTENTS_CHANGED
getIndex0() and getIndex1() ) are
in the range of the particular group.
Note: getGroupIndex() must be non-negative.
public static final int INTERVAL_ADDED
getIndex0() and getIndex1() ) are
in the range of the particular group.
Note: getGroupIndex() must be non-negative.
public static final int INTERVAL_REMOVED
getIndex0() and getIndex1() ) are
in the range of the particular group.
Note: getGroupIndex() must be non-negative.
public static final int STRUCTURE_CHANGED
public static final int GROUPS_CHANGED
getIndex0() and getIndex1() ) are
the indices of groups.
Note: getGroupIndex() is ignored.public static final int GROUPS_ADDED
getIndex0() and getIndex1() ) are
the indices of groups.
Note: getGroupIndex() is ignored.public static final int GROUPS_REMOVED
getIndex0() and getIndex1() ) are
the indices of groups.
Note: getGroupIndex() is ignored.public static final int GROUPS_RESET
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.public static final int GROUPS_OPENED
public static final int DISABLE_CLIENT_UPDATE
public static final int ENABLE_CLIENT_UPDATE
public GroupsDataEvent(GroupsModel model, int type, int groupIndex, int index0, int index1)
type - one of CONTENTS_CHANGED,
INTERVAL_ADDED, INTERVAL_REMOVED,
GROUPS_CHANGED,
GROUPS_ADDED, or GROUPS_REMOVED..groupIndex - the index of the group being changed.
It is used only if type is one of
CONTENTS_CHANGED,
INTERVAL_ADDED, or 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.public GroupsModel getModel()
public int getType()
CONTENTS_CHANGED,
INTERVAL_ADDED, INTERVAL_REMOVED,
GROUPS_CHANGED,
GROUPS_ADDED, or GROUPS_REMOVED.public int getGroupIndex()
getType() is one of
CONTENTS_CHANGED,
INTERVAL_ADDED, INTERVAL_REMOVED.public int getIndex0()
getIndex1().public int getIndex1()
getIndex0().Copyright © 2015. All rights reserved.