|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupsModel
The interface defines a suitable data model for grouping Listbox
and Grid
.
If the data model is used with sortable listbox or grid,
the developer must also implement GroupsModelExt
.
GroupsModelExt
,
ListModel
Method Summary | |
---|---|
void |
addGroupsDataListener(GroupsDataListener l)
Adds a listener to the groups that's notified each time a change to the data model occurs. |
java.lang.Object |
getChild(int groupIndex,
int index)
Returns the child value of the specified group at the specified index. |
int |
getChildCount(int groupIndex)
Returns the number of children of the specified group. |
java.lang.Object |
getGroup(int groupIndex)
Returns the group value at the specified index. |
int |
getGroupCount()
Returns the number of groups. |
java.lang.Object |
getGroupfoot(int groupIndex)
Returns the foot value of the specified group. |
boolean |
hasGroupfoot(int groupIndex)
Returns if the specified group has a foot value. |
boolean |
isClose(int groupIndex)
Whether the group is close at the specified index. |
void |
removeGroupsDataListener(GroupsDataListener l)
Removes a listener from the groups that's notified each time a change to the data model occurs. |
void |
setClose(int groupIndex,
boolean close)
Sets whether the group is close at the specified index. |
Method Detail |
---|
java.lang.Object getGroup(int groupIndex)
Group
and Listgroup
.
groupIndex
- the index of the group.int getGroupCount()
java.lang.Object getChild(int groupIndex, int index)
groupIndex
- the index of the group.index
- the index of the element in the group.int getChildCount(int groupIndex)
Note: it does not include the groot foot (getGroupfoot(int)
).
groupIndex
- the index of the group.java.lang.Object getGroupfoot(int groupIndex)
Groupfoot
and Listgroupfoot
.
Note: it is ignored if hasGroupfoot(int)
returns false.
groupIndex
- the index of the group.boolean hasGroupfoot(int groupIndex)
groupIndex
- the index of the group.void addGroupsDataListener(GroupsDataListener l)
void removeGroupsDataListener(GroupsDataListener l)
boolean isClose(int groupIndex)
Group
and Listgroup
.
groupIndex
- the index of the group.void setClose(int groupIndex, boolean close)
Group
and Listgroup
.
groupIndex
- the index of the group.close
- true to close the Group.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |