public interface ISelectableTableContentProvider extends IAddressableTableContentProvider
Table content provider that supports selecting individual rows by leveraging ability of identifying and addressing rows by id from <@link com.webmethods.caf.faces.data.IAddressableTableContentProvider}
Modifier and Type | Method and Description |
---|---|
int |
getRowSelectedCount()
Returns number of selected rows.
|
Collection |
getRowSelectedIds()
Returns collection of
String ids of the selected rows. |
Collection |
getRowUnselectedIds()
Returns collection of
String ids of the un-selected rows
(all other rows are selected implicitly)
May be empty or contain non-existent ids; never null, never contains null. |
boolean |
getUseUnselectedModel()
Returns true if it's more effecient to use unselected model
(ie
getRowUnselectedIds() rather than getRowSelectedIds() ). |
boolean |
isRowSelected()
Returns
true if current row is selected. |
void |
setRowSelected(boolean selected)
Sets the selection status for the current row.
|
void |
setRowSelectedIds(Collection ids)
Sets new selection using a collection of
String ids of the rows to select. |
void |
setRowUnselectedIds(Collection ids)
Unselects rows using a collection of
String ids of the un-selected rows
(all other rows are selected implicitly). |
getRowId, isAddressable, setRowById
getCurrentRow, getRowCount, getRowIndex, getRowVariable, isRowAvailable, setRowIndex, setRowVariable
getPropertyKeys, getType, getValue, hasProperty, toString
boolean isRowSelected()
true
if current row is selected.void setRowSelected(boolean selected)
selected
- true
to select current row; false
to unselect.int getRowSelectedCount()
Collection getRowSelectedIds()
String
ids of the selected rows.
May be empty or contain non-existent ids; never null, never contains null.void setRowSelectedIds(Collection ids)
String
ids of the rows to select.
May be empty or contain non-existent ids; never null, never contains null.ids
- the collection of String
row idsboolean getUseUnselectedModel()
getRowUnselectedIds()
rather than getRowSelectedIds()
).Collection getRowUnselectedIds()
String
ids of the un-selected rows
(all other rows are selected implicitly)
May be empty or contain non-existent ids; never null, never contains null.void setRowUnselectedIds(Collection ids)
String
ids of the un-selected rows
(all other rows are selected implicitly).
May be empty or contain non-existent ids; never null, never contains null.ids
- collection of String
row ids