|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.widget.grid.selection.AbstractRowHandleSelectionModel<T>
com.vaadin.client.widget.grid.selection.SelectionModelNone<T>
public class SelectionModelNone<T>
No-row selection model.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel |
|---|
SelectionModel.Multi<T>, SelectionModel.None<T>, SelectionModel.Single<T> |
| Constructor Summary | |
|---|---|
SelectionModelNone()
|
|
| Method Summary | |
|---|---|
protected boolean |
deselectByHandle(DataSource.RowHandle<T> handle)
Deselect a row, based on its RowHandle. |
java.util.Collection<T> |
getSelectedRows()
Returns a Collection containing all selected rows. |
Renderer<java.lang.Boolean> |
getSelectionColumnRenderer()
Return the Renderer responsible for rendering the selection
column. |
boolean |
isSelected(T row)
Return true if the provided row is considered selected under the implementing selection model. |
void |
reset()
Resets the SelectionModel to the initial state. |
protected boolean |
selectByHandle(DataSource.RowHandle<T> handle)
Select a row, based on its RowHandle. |
void |
setGrid(Grid<T> grid)
Tells this SelectionModel which Grid it belongs to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectionModelNone()
| Method Detail |
|---|
public boolean isSelected(T row)
SelectionModel
isSelected in interface SelectionModel<T>row - row object instance
true, if the row given as argument is considered
selected.public Renderer<java.lang.Boolean> getSelectionColumnRenderer()
SelectionModelRenderer responsible for rendering the selection
column.
getSelectionColumnRenderer in interface SelectionModel<T>public void setGrid(Grid<T> grid)
SelectionModelImplementations are free to have this be a no-op. This method is called internally by Grid.
setGrid in interface SelectionModel<T>grid - a Grid instance; null when removing from
Gridpublic void reset()
SelectionModelThis method can be called internally, for example, when the attached Grid's data source changes.
reset in interface SelectionModel<T>public java.util.Collection<T> getSelectedRows()
SelectionModel
getSelectedRows in interface SelectionModel<T>
protected boolean selectByHandle(DataSource.RowHandle<T> handle)
throws java.lang.UnsupportedOperationException
AbstractRowHandleSelectionModelRowHandle.
Note: this method may not fire selection change events.
selectByHandle in class AbstractRowHandleSelectionModel<T>handle - the handle to select by
true iff the selection state was changed by this
call
java.lang.UnsupportedOperationException - if the selection model does not support either handles or
selection
protected boolean deselectByHandle(DataSource.RowHandle<T> handle)
throws java.lang.UnsupportedOperationException
AbstractRowHandleSelectionModelRowHandle.
Note: this method may not fire selection change events.
deselectByHandle in class AbstractRowHandleSelectionModel<T>handle - the handle to deselect by
true iff the selection state was changed by this
call
java.lang.UnsupportedOperationException - if the selection model does not support either handles or
deselection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||