Package org.zkoss.zul.impl
Class GroupsListModel.GroupDataInfo
- java.lang.Object
-
- org.zkoss.zul.impl.GroupsListModel.GroupDataInfo
-
- All Implemented Interfaces:
GroupingInfo
- Enclosing class:
- GroupsListModel<D,G,F>
public static class GroupsListModel.GroupDataInfo extends java.lang.Object implements GroupingInfo
The group information returned byGroupsListModel.getDataInfo(int)
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGroupIndex()
Returns the index of this groupint
getOffset()
The offset of an element in a group.int
getType()
The type of the data.boolean
isOpen()
Whether the group is opened.
-
-
-
Field Detail
-
GROUP
public static final byte GROUP
Indicates the data is a group (a.k.a., the head of the group).- See Also:
- Constant Field Values
-
GROUPFOOT
public static final byte GROUPFOOT
Indicates the data is a group foot.- See Also:
- Constant Field Values
-
ELEMENT
public static final byte ELEMENT
Indicates the data is an element of a group.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public int getType()
Description copied from interface:GroupingInfo
The type of the data. It is one ofGroupingInfo.GROUP
,GroupingInfo.GROUPFOOT
andGroupingInfo.ELEMENT
.- Specified by:
getType
in interfaceGroupingInfo
-
getGroupIndex
public int getGroupIndex()
Description copied from interface:GroupingInfo
Returns the index of this group- Specified by:
getGroupIndex
in interfaceGroupingInfo
-
getOffset
public int getOffset()
Description copied from interface:GroupingInfo
The offset of an element in a group. It is meaningful only ifGroupingInfo.getType()
isGroupingInfo.ELEMENT
.- Specified by:
getOffset
in interfaceGroupingInfo
-
isOpen
public boolean isOpen()
Description copied from interface:GroupingInfo
Whether the group is opened. It is meaningful only ifGroupingInfo.getType()
isGroupingInfo.GROUP
.- Specified by:
isOpen
in interfaceGroupingInfo
-
-