|
||||||||||
| 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.SelectionModelMulti<T>
public class SelectionModelMulti<T>
Multi-row selection model.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel.Multi |
|---|
SelectionModel.Multi.Batched<T> |
| Nested classes/interfaces inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel |
|---|
SelectionModel.Multi<T>, SelectionModel.None<T>, SelectionModel.Single<T> |
| Constructor Summary | |
|---|---|
SelectionModelMulti()
|
|
| Method Summary | |
|---|---|
void |
commitBatchSelect()
Commits and ends a batch selection. |
boolean |
deselect(java.util.Collection<T> rows)
Deselect all rows in a Collection. |
boolean |
deselect(T... rows)
Deselects one or more rows. |
boolean |
deselectAll()
De-selects all rows. |
protected boolean |
deselectByHandle(DataSource.RowHandle<T> handle)
Deselect a row, based on its RowHandle. |
java.util.Collection<T> |
getDeselectedRowsBatch()
Gets all the rows that would become deselected in this batch. |
java.util.Collection<T> |
getSelectedRows()
Returns a Collection containing all selected rows. |
java.util.Collection<T> |
getSelectedRowsBatch()
Gets all the rows that would become selected in this batch. |
Renderer<java.lang.Boolean> |
getSelectionColumnRenderer()
Return the Renderer responsible for rendering the selection
column. |
boolean |
isBeingBatchSelected()
Checks whether or not a batch has been started. |
boolean |
isSelected(T row)
Return true if the provided row is considered selected under the implementing selection model. |
protected boolean |
isSelectedByHandle(DataSource.RowHandle<T> handle)
|
void |
reset()
Resets the SelectionModel to the initial state. |
boolean |
select(java.util.Collection<T> rows)
Select all rows in a Collection. |
boolean |
select(T... rows)
Selects one or more rows. |
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. |
void |
startBatchSelect()
Starts a batch selection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectionModelMulti()
| 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 boolean select(T... rows)
SelectionModel.Multi
select in interface SelectionModel.Multi<T>rows - Grid row objects
public boolean deselect(T... rows)
SelectionModel.Multi
deselect in interface SelectionModel.Multi<T>rows - Grid row objects
public boolean deselectAll()
SelectionModel.Multi
deselectAll in interface SelectionModel.Multi<T>public boolean select(java.util.Collection<T> rows)
SelectionModel.MultiCollection.
select in interface SelectionModel.Multi<T>rows - a collection of Grid row objects
public boolean deselect(java.util.Collection<T> rows)
SelectionModel.MultiCollection.
deselect in interface SelectionModel.Multi<T>rows - a collection of Grid row objects
protected boolean isSelectedByHandle(DataSource.RowHandle<T> handle)
protected boolean selectByHandle(DataSource.RowHandle<T> handle)
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
callprotected boolean deselectByHandle(DataSource.RowHandle<T> handle)
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
callpublic java.util.Collection<T> getSelectedRows()
SelectionModel
getSelectedRows in interface SelectionModel<T>public void reset()
SelectionModelThis method can be called internally, for example, when the attached Grid's data source changes.
reset in interface SelectionModel<T>public void startBatchSelect()
SelectionModel.Multi.Batched
Any commands to any select or deselect method will be batched
into one, and a final selection event will be fired when
SelectionModel.Multi.Batched.commitBatchSelect() is called.
Note: SelectionChangeEvents will
still be fired for each selection/deselection. You should check
whether the event is a part of a batch or not with
SelectionEvent.isBatchedSelection().
startBatchSelect in interface SelectionModel.Multi.Batched<T>public void commitBatchSelect()
SelectionModel.Multi.Batched
Any and all selections and deselections since the last invocation
of SelectionModel.Multi.Batched.startBatchSelect() will be fired at once as one
collated SelectionEvent.
commitBatchSelect in interface SelectionModel.Multi.Batched<T>public boolean isBeingBatchSelected()
SelectionModel.Multi.Batched
isBeingBatchSelected in interface SelectionModel.Multi.Batched<T>true iff a batch has been startedpublic java.util.Collection<T> getSelectedRowsBatch()
SelectionModel.Multi.Batched
getSelectedRowsBatch in interface SelectionModel.Multi.Batched<T>public java.util.Collection<T> getDeselectedRowsBatch()
SelectionModel.Multi.Batched
getDeselectedRowsBatch in interface SelectionModel.Multi.Batched<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||