|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zul.AbstractListModel
org.zkoss.zul.impl.GroupsListModel
public class GroupsListModel
Encapulates GroupsModel
as an instance of ListModel
such that it is easier to handle by Listbox
and
Group
.
Nested Class Summary | |
---|---|
static class |
GroupsListModel.GroupDataInfo
The group infomation returned by getDataInfo(int) . |
Constructor Summary | |
---|---|
GroupsListModel(GroupsModel model)
|
Method Summary | |
---|---|
GroupsListModel.GroupDataInfo |
getDataInfo(int index)
Returns the group info of given index |
java.lang.Object |
getElementAt(int index)
Returns the value at the specified index. |
int |
getGroupOffset(int groupIndex)
Returns the offset from 0 that a group in this ListModel. |
java.util.List |
getGroupsInfo()
|
GroupsModel |
getGroupsModel()
|
int |
getSize()
Returns the length of the list. |
void |
group(java.util.Comparator cmpr,
boolean ascending,
int colIndex)
Groups and sorts the data by the specified column and comparator. |
void |
sort(java.util.Comparator cmpr,
boolean ascending,
int colIndex)
Sorts the data by the specified column and comparator. |
Methods inherited from class org.zkoss.zul.AbstractListModel |
---|
addListDataListener, addSelection, clearSelection, fireEvent, getSelection, removeAllSelection, removeListDataListener, removeSelection, retainAllSelection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupsListModel(GroupsModel model)
Method Detail |
---|
public java.util.List getGroupsInfo()
public int getGroupOffset(int groupIndex)
For example, _gpofs[2] is the offset of group 2 (the third group) in this ListModel.
groupIndex
- the group index
public GroupsModel getGroupsModel()
public void group(java.util.Comparator cmpr, boolean ascending, int colIndex)
Listbox
or Grid
has the sort function.
colIndex
- the index of the columnpublic void sort(java.util.Comparator cmpr, boolean ascending, int colIndex)
public GroupsListModel.GroupDataInfo getDataInfo(int index)
public java.lang.Object getElementAt(int index)
ListModel
public int getSize()
ListModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |