Constructor and Description |
---|
RowGroup(RowGroupModel<T> rowGroupModel,
String groupName) |
RowGroup(RowGroupModel<T> rowGroupModel,
String groupName,
boolean collapsed) |
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 |
setCollapseable(boolean collapseable) |
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 |
toString() |
public RowGroup(RowGroupModel<T> rowGroupModel, String groupName)
public RowGroup(RowGroupModel<T> rowGroupModel, String groupName, boolean collapsed)
public String getGroupName()
getGroupName
in interface IRowGroup<T>
public Object getData()
IRowGroup
public Object getData(String key)
IRowGroup
public void setData(Object data)
IRowGroup
public void setData(String key, Object data)
IRowGroup
public boolean isCollapsed()
isCollapsed
in interface IRowGroup<T>
public boolean isCollapseable()
isCollapseable
in interface IRowGroup<T>
public void setCollapseable(boolean collapseable)
public void collapse()
IRowGroup
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.
public void expand()
IRowGroup
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.
public void addMemberRow(T row)
IRowGroup
Adds the row into the group.
addMemberRow
in interface IRowGroup<T>
row
- the row to be addedpublic void addStaticMemberRow(T row)
IRowGroup
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).
addStaticMemberRow
in interface IRowGroup<T>
row
- the static row T to be added.public void addMemberRows(List<T> rows)
IRowGroup
Adds multiple rows into the group.
addMemberRows
in interface IRowGroup<T>
rows
- A List
of rows T to be added.public boolean removeMemberRow(T row)
IRowGroup
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.
removeMemberRow
in interface IRowGroup<T>
row
- The row T to be removed.public void removeMemberRows(List<T> rows)
IRowGroup
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.
removeMemberRows
in interface IRowGroup<T>
rows
- A List
of rows T to be added.public IRowGroup<T> getParentGroup()
IRowGroup
getParentGroup
in interface IRowGroup<T>
public void setParentGroup(IRowGroup<T> parentGroup)
IRowGroup
setParentGroup
in interface IRowGroup<T>
public void addRowGroup(IRowGroup<T> rowGroup)
IRowGroup
addRowGroup
in interface IRowGroup<T>
rowGroup
- a IHierarchicalRowGroup.public boolean removeRowGroup(IRowGroup<T> rowGroup)
IRowGroup
removeRowGroup
in interface IRowGroup<T>
rowGroup
- a IHierarchicalRowGroup.public List<IRowGroup<T>> getRowGroups()
getRowGroups
in interface IRowGroup<T>
List
of the groups which are direct
children of this group.public List<T> getOwnMemberRows(boolean includeStaticRows)
IRowGroup
getOwnMemberRows
in interface IRowGroup<T>
public List<T> getOwnStaticMemberRows()
IRowGroup
getOwnStaticMemberRows
in interface IRowGroup<T>
public void clear()
IRowGroup
public List<T> getMemberRows(boolean includeStaticRows)
getMemberRows
in interface IRowGroup<T>
includeStaticRows
- true to include the static rows false to exclude them.List
of the rows (T) in the
IRowGroup
.public List<T> getStaticMemberRows()
getStaticMemberRows
in interface IRowGroup<T>
List
of the static rows (T) in the
IRowGroup
.public IRowGroup<T> getRowGroupForRow(T row)
IRowGroup
getRowGroupForRow
in interface IRowGroup<T>
public boolean isEmpty()
IRowGroup
Copyright © 2013. All Rights Reserved.