Package org.zkoss.zul.event
Class GroupsDataEvent
java.lang.Object
org.zkoss.zul.event.GroupsDataEvent
Defines an event that encapsulates changes to a list of groups.
- Since:
- 3.5.0
- Author:
- tomyeh
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifies one or more changes in the contents of a particular group.static final intIdentified the state that Component's client update to be disabledstatic final intIdentified the state that Component's client update to be enabledstatic final intIdentifies the addition of one or more contiguous items to the list.static final intIdentifies one or more changes in the groups contents.static final intIdentifies the Group opened.static final intIdentifies the removal of one or more contiguous items from the list.static final intIdentifies the Group is reset.static final intIdentifies the addition of one or more contiguous items to a particular group.static final intIdentifies the removal of one or more contiguous items from a particular group.static final intIdentified the state ofSelectable.isMultiple()is changed.static final intIdentifies the selection of the lists has changed.static final intIdentifies the structure of the lists has changed. -
Constructor Summary
ConstructorsConstructorDescriptionGroupsDataEvent(GroupsModel model, int type, int groupIndex, int index0, int index1) Constructor. -
Method Summary
-
Field Details
-
CONTENTS_CHANGED
public static final int CONTENTS_CHANGEDIdentifies one or more changes in the contents of a particular group. The indices (getIndex0()andgetIndex1()) are in the range of the particular group.Note:
getGroupIndex()must be non-negative.- See Also:
-
INTERVAL_ADDED
public static final int INTERVAL_ADDEDIdentifies the addition of one or more contiguous items to a particular group. The indices (getIndex0()andgetIndex1()) are in the range of the particular group.Note:
getGroupIndex()must be non-negative.- See Also:
-
INTERVAL_REMOVED
public static final int INTERVAL_REMOVEDIdentifies the removal of one or more contiguous items from a particular group. The indices (getIndex0()andgetIndex1()) are in the range of the particular group.Note:
getGroupIndex()must be non-negative.- See Also:
-
STRUCTURE_CHANGED
public static final int STRUCTURE_CHANGEDIdentifies the structure of the lists has changed. @since 5.0.7- See Also:
-
GROUPS_CHANGED
public static final int GROUPS_CHANGEDIdentifies one or more changes in the groups contents. The indices (getIndex0()andgetIndex1()) are the indices of groups. Note:getGroupIndex()is ignored.- See Also:
-
GROUPS_ADDED
public static final int GROUPS_ADDEDIdentifies the addition of one or more contiguous items to the list. The indices (getIndex0()andgetIndex1()) are the indices of groups. Note:getGroupIndex()is ignored.- See Also:
-
GROUPS_REMOVED
public static final int GROUPS_REMOVEDIdentifies the removal of one or more contiguous items from the list. The indices (getIndex0()andgetIndex1()) are the indices of groups. Note:getGroupIndex()is ignored.- See Also:
-
GROUPS_RESET
public static final int GROUPS_RESETIdentifies the Group is reset.- Since:
- 5.0.0
- See Also:
-
SELECTION_CHANGED
public static final int SELECTION_CHANGEDIdentifies the selection of the lists has changed. Notice that the objects being selected can be found by callingSelectable.getSelection(). Moreover,getIndex0()andgetIndex1()are both meaningless.- Since:
- 6.0.0
- See Also:
-
MULTIPLE_CHANGED
public static final int MULTIPLE_CHANGEDIdentified the state ofSelectable.isMultiple()is changed.- Since:
- 6.0.0
- See Also:
-
GROUPS_OPENED
public static final int GROUPS_OPENEDIdentifies the Group opened.- Since:
- 7.0.6
- See Also:
-
DISABLE_CLIENT_UPDATE
public static final int DISABLE_CLIENT_UPDATEIdentified the state that Component's client update to be disabled- Since:
- 8.0.0
- See Also:
-
ENABLE_CLIENT_UPDATE
public static final int ENABLE_CLIENT_UPDATEIdentified the state that Component's client update to be enabled- Since:
- 8.0.0
- See Also:
-
-
Constructor Details
-
GroupsDataEvent
Constructor.- Parameters:
type- one ofCONTENTS_CHANGED,INTERVAL_ADDED,INTERVAL_REMOVED,GROUPS_CHANGED,GROUPS_ADDED, orGROUPS_REMOVED..groupIndex- the index of the group being changed. It is used only if type is one ofCONTENTS_CHANGED,INTERVAL_ADDED, orINTERVAL_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 Details
-
getModel
Returns the list model that fires this event. -
getType
public int getType()Returns the event type. One ofCONTENTS_CHANGED,INTERVAL_ADDED,INTERVAL_REMOVED,GROUPS_CHANGED,GROUPS_ADDED, orGROUPS_REMOVED. -
getGroupIndex
public int getGroupIndex()Returns the index of the group. It is used only ifgetType()is one ofCONTENTS_CHANGED,INTERVAL_ADDED,INTERVAL_REMOVED. -
getIndex0
public int getIndex0()Returns the lower index of the change range. For a single element/group, this value is the same as that returned bygetIndex1(). -
getIndex1
public int getIndex1()Returns the upper index of the change range. For a single element/group, this value is the same as that returned bygetIndex0(). -
toString
-