|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zul.AbstractListModel<Object>
org.zkoss.zul.impl.GroupsListModel<D,G,F>
public class GroupsListModel<D,G,F>
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) . |
Field Summary | |
---|---|
protected GroupsModel<D,G,F> |
_model
|
Constructor Summary | |
---|---|
protected |
GroupsListModel(GroupsModel<D,G,F> model)
|
Method Summary | ||
---|---|---|
GroupsListModel.GroupDataInfo |
getDataInfo(int index)
Returns the group info of given index |
|
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. |
|
List<int[]> |
getGroupsInfos()
|
|
GroupsModel<D,G,F> |
getGroupsModel()
|
|
int |
getSize()
Returns the length of the list. |
|
static
|
toListModel(GroupsModel<D,G,F> model)
Returns the list model ( ListModel ) representing the given
groups model. |
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 |
Field Detail |
---|
protected final GroupsModel<D,G,F> _model
Constructor Detail |
---|
protected GroupsListModel(GroupsModel<D,G,F> model)
Method Detail |
---|
public static <D,G,F> GroupsListModel<D,G,F> toListModel(GroupsModel<D,G,F> model)
ListModel
) representing the given
groups model.
public List<int[]> getGroupsInfos()
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<D,G,F> getGroupsModel()
public GroupsListModel.GroupDataInfo getDataInfo(int index)
public 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 |