|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface Grid.SelectionModel.Multi
A SelectionModel that supports multiple selections to be made.
This interface has a contract of having the same behavior, no matter how the selection model is interacted with. In other words, if something is forbidden to do in e.g. the user interface, it must also be forbidden to do in the server-side and client-side APIs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.ui.Grid.SelectionModel |
|---|
Grid.SelectionModel.Multi, Grid.SelectionModel.None, Grid.SelectionModel.Single |
| Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector |
|---|
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener |
| Method Summary | |
|---|---|
boolean |
deselect(java.util.Collection<?> itemIds)
Marks items as deselected. |
boolean |
deselect(java.lang.Object... itemIds)
Marks items as deselected. |
boolean |
deselectAll()
Marks all the items in the current Container as deselected |
boolean |
select(java.util.Collection<?> itemIds)
Marks items as selected. |
boolean |
select(java.lang.Object... itemIds)
Marks items as selected. |
boolean |
selectAll()
Marks all the items in the current Container as selected |
boolean |
setSelected(java.util.Collection<?> itemIds)
Marks items as selected while deselecting all items not in the given Collection. |
boolean |
setSelected(java.lang.Object... itemIds)
Marks items as selected while deselecting all items not in the varargs array. |
| Methods inherited from interface com.vaadin.ui.Grid.SelectionModel |
|---|
getSelectedRows, isSelected, reset, setGrid |
| Methods inherited from interface com.vaadin.server.Extension |
|---|
remove, setParent |
| Methods inherited from interface com.vaadin.server.ClientConnector |
|---|
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Method Detail |
|---|
boolean select(java.lang.Object... itemIds)
throws java.lang.IllegalArgumentException
This method does not clear any previous selection state, only adds to it.
itemIds - the itemId(s) to mark as selected
true if the selection state changed.
false if all the given itemIds already were
selected
java.lang.IllegalArgumentException - if the itemIds varargs array is
null or given itemIds don't exist in the
container of Griddeselect(Object...)
boolean select(java.util.Collection<?> itemIds)
throws java.lang.IllegalArgumentException
This method does not clear any previous selection state, only adds to it.
itemIds - the itemIds to mark as selected
true if the selection state changed.
false if all the given itemIds already were
selected
java.lang.IllegalArgumentException - if itemIds is null or given
itemIds don't exist in the container of Griddeselect(Collection)
boolean deselect(java.lang.Object... itemIds)
throws java.lang.IllegalArgumentException
itemIds - the itemId(s) to remove from being selected
true if the selection state changed.
false if none the given itemIds were
selected previously
java.lang.IllegalArgumentException - if the itemIds varargs array is
nullselect(Object...)
boolean deselect(java.util.Collection<?> itemIds)
throws java.lang.IllegalArgumentException
itemIds - the itemId(s) to remove from being selected
true if the selection state changed.
false if none the given itemIds were
selected previously
java.lang.IllegalArgumentException - if itemIds is nullselect(Collection)boolean selectAll()
true iff some items were previously not
selecteddeselectAll()boolean deselectAll()
true iff some items were previously selectedselectAll()
boolean setSelected(java.util.Collection<?> itemIds)
throws java.lang.IllegalArgumentException
itemIds - the itemIds to mark as selected
true if the selection state changed.
false if all the given itemIds already were
selected
java.lang.IllegalArgumentException - if itemIds is null or given
itemIds don't exist in the container of Grid
boolean setSelected(java.lang.Object... itemIds)
throws java.lang.IllegalArgumentException
itemIds - the itemIds to mark as selected
true if the selection state changed.
false if all the given itemIds already were
selected
java.lang.IllegalArgumentException - if the itemIds varargs array is
null or given itemIds don't exist in the
container of Grid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||