|
Spring Web Flow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.model.DataModel<E>
javax.faces.model.ListDataModel<T>
org.springframework.faces.model.SerializableListDataModel<T>
org.springframework.faces.model.OneSelectionTrackingListDataModel<T>
public class OneSelectionTrackingListDataModel<T>
A DataModel implementation that tracks the currently selected row, allowing only one selection at a time.
| Constructor Summary | |
|---|---|
OneSelectionTrackingListDataModel()
|
|
OneSelectionTrackingListDataModel(java.util.List<T> list)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getSelectedRow()
|
java.util.List<T> |
getSelections()
Returns the list of selected row data objects for the model. |
boolean |
isCurrentRowSelected()
Checks whether the row pointed to by the model's current index is selected. |
void |
select(T rowData)
Selects the given row data object in the model. |
void |
selectAll()
Selects all row data objects in the model. |
void |
setCurrentRowSelected(boolean rowSelected)
Sets whether the row pointed to by the model's current index is selected |
void |
setSelections(java.util.List<T> selections)
Sets the list of selected row data objects for the model. |
| Methods inherited from class org.springframework.faces.model.SerializableListDataModel |
|---|
getWrappedData, setWrappedData, toString |
| Methods inherited from class javax.faces.model.ListDataModel |
|---|
getRowCount, getRowData, getRowIndex, isRowAvailable, setRowIndex |
| Methods inherited from class javax.faces.model.DataModel |
|---|
addDataModelListener, getDataModelListeners, iterator, removeDataModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OneSelectionTrackingListDataModel()
public OneSelectionTrackingListDataModel(java.util.List<T> list)
| Method Detail |
|---|
public java.util.List<T> getSelections()
SelectionAware
getSelections in interface SelectionAware<T>public boolean isCurrentRowSelected()
SelectionAware
isCurrentRowSelected in interface SelectionAware<T>public void select(T rowData)
SelectionAware
select in interface SelectionAware<T>rowData - the row data object to select.public void selectAll()
SelectionAware
selectAll in interface SelectionAware<T>public void setCurrentRowSelected(boolean rowSelected)
SelectionAware
setCurrentRowSelected in interface SelectionAware<T>rowSelected - true to select the current rowpublic void setSelections(java.util.List<T> selections)
SelectionAware
setSelections in interface SelectionAware<T>selections - the list of selected row data objectspublic java.lang.Object getSelectedRow()
|
Spring Web Flow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||