T
- public interface IRowGroup<T>
IRowGroupModel
.Modifier and Type | Method and Description |
---|---|
void |
addMemberRow(T row)
Adds the row into the group.
|
void |
addMemberRows(List<T> rows)
Adds multiple rows into the group.
|
void |
addRowGroup(IRowGroup<T> rowGroup)
Adds a row-group into the group.
|
void |
addStaticMemberRow(T row)
Adds a static row into the group.
|
void |
clear()
Removes all member and static member rows from the group.
|
void |
collapse()
Updates the group's state to indicate it is collapsed.
|
void |
expand()
Updates the group's state to indicate it is expanded.
|
Object |
getData()
Allows some arbitrary data to be retrieved from an IRowGroup.
|
Object |
getData(String key)
Allows some arbitrary data to be retrieved from an IRowGroup.
|
String |
getGroupName() |
List<T> |
getMemberRows(boolean includeStaticRows) |
List<T> |
getOwnMemberRows(boolean includeStaticRows)
Returns only the rows contained with this group.
|
List<T> |
getOwnStaticMemberRows()
Return static rows only in this group not in nested groups.
|
IRowGroup<T> |
getParentGroup()
If this group is a nested child of another this will return the parent
group.
|
IRowGroup<T> |
getRowGroupForRow(T row)
Retrieves the sub-group for a given row member.
|
List<IRowGroup<T>> |
getRowGroups() |
List<T> |
getStaticMemberRows() |
boolean |
isCollapseable() |
boolean |
isCollapsed() |
boolean |
isEmpty()
Returns true if there are no rows (normal or static) in the group.
|
boolean |
removeMemberRow(T row)
Removes the row from the group whether it's static or non-static.
|
void |
removeMemberRows(List<T> rows)
Removes multiple rows from the group whether they are static or non-static.
|
boolean |
removeRowGroup(IRowGroup<T> rowGroup)
Returns the row-group child of this group.
|
void |
setData(Object data)
Allows some arbitrary data to be tagged to an IRowGroup.
|
void |
setData(String key,
Object data)
Allows some arbitrary data to be tagged to an IRowGroup.
|
void |
setParentGroup(IRowGroup<T> parentGroup)
Set the specified group as the parent of this group.
|
String getGroupName()
IRowGroup<T> getParentGroup()
void setParentGroup(IRowGroup<T> parentGroup)
parentGroup
- boolean isCollapsed()
boolean isCollapseable()
void collapse()
Updates the group's state to indicate it is collapsed.
A notification should be sent to any IRowGroupModelListener
s to
indicate a change in the model has occurred.
void expand()
Updates the group's state to indicate it is expanded.
A notification should be sent to any IRowGroupModelListener
s to
indicate a change in the model has occurred.
void addMemberRow(T row)
Adds the row into the group.
row
- the row to be addedvoid addMemberRows(List<T> rows)
Adds multiple rows into the group.
rows
- A List
of rows T to be added.void addStaticMemberRow(T row)
Adds a static row into the group. A static row is one that is always shown when the group is collapsed (summary data rows for example).
row
- the static row T to be added.boolean removeMemberRow(T row)
Removes the row from the group whether it's static or non-static.
Existing positions in the model may be bumped up if the row was not the last row in the model.
A notification should be sent to any IRowGroupModelListener
s to
indicate a change in the model has occurred.
row
- The row T to be removed.void removeMemberRows(List<T> rows)
Removes multiple rows from the group whether they are static or non-static.
Existing positions in the model may be bumped up if the row was not the last row in the model.
A notification should be sent to any IRowGroupModelListener
s to
indicate a change in the model has occurred.
rows
- A List
of rows T to be added.void clear()
boolean isEmpty()
void addRowGroup(IRowGroup<T> rowGroup)
rowGroup
- a IHierarchicalRowGroup.boolean removeRowGroup(IRowGroup<T> rowGroup)
rowGroup
- a IHierarchicalRowGroup.List<IRowGroup<T>> getRowGroups()
List
of the groups which are direct
children of this group.List<T> getOwnMemberRows(boolean includeStaticRows)
List<T> getOwnStaticMemberRows()
IRowGroup<T> getRowGroupForRow(T row)
void setData(Object data)
data
- void setData(String key, Object data)
data
- Object getData()
Copyright © 2013. All Rights Reserved.