Package com.vaadin.v7.ui
Class Grid.MultiSelectionModel
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.server.AbstractExtension
-
- com.vaadin.v7.ui.Grid.AbstractGridExtension
-
- com.vaadin.v7.ui.Grid.AbstractSelectionModel
-
- com.vaadin.v7.ui.Grid.MultiSelectionModel
-
- All Implemented Interfaces:
MethodEventSource,ClientConnector,Extension,com.vaadin.shared.Connector,DataGenerator,Grid.SelectionModel,Grid.SelectionModel.HasUserSelectionAllowed,Grid.SelectionModel.Multi,Serializable
- Enclosing class:
- Grid
@Deprecated public static class Grid.MultiSelectionModel extends Grid.AbstractSelectionModel implements Grid.SelectionModel.Multi, Grid.SelectionModel.HasUserSelectionAllowed
Deprecated.A default implementation of aSelectionModel.Multi.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.v7.ui.Grid.SelectionModel
Grid.SelectionModel.HasUserSelectionAllowed, Grid.SelectionModel.Multi, Grid.SelectionModel.None, Grid.SelectionModel.Single
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MAX_SELECTIONSDeprecated.The default selection size limit.-
Fields inherited from class com.vaadin.v7.ui.Grid.AbstractSelectionModel
selection
-
-
Constructor Summary
Constructors Constructor Description MultiSelectionModel()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleandeselect(Object... itemIds)Deprecated.Marks items as deselected.booleandeselect(Collection<?> itemIds)Deprecated.Marks items as deselected.protected booleandeselect(Collection<?> itemIds, boolean refresh)Deprecated.booleandeselectAll()Deprecated.Marks all the items in the current Container as deselected.protected booleandeselectAll(boolean refresh)Deprecated.protected voidextend(AbstractClientConnector target)Deprecated.Collection<Object>getSelectedRows()Deprecated.Returns a collection of all the currently selected itemIds.intgetSelectionLimit()Deprecated.Gets the selection limit.protected MultiSelectionModelStategetState()Deprecated.protected MultiSelectionModelStategetState(boolean markAsDirty)Deprecated.booleanisUserSelectionAllowed()Deprecated.Checks if the user is allowed to change the selection.voidreset()Deprecated.Resets the selection model.booleanselect(Object... itemIds)Deprecated.Marks items as selected.booleanselect(Collection<?> itemIds)Deprecated.Marks items as selected.protected booleanselect(Collection<?> itemIds, boolean refresh)Deprecated.booleanselectAll()Deprecated.Marks all the items in the current Container as selected.protected booleanselectAll(boolean refresh)Deprecated.booleansetSelected(Object... itemIds)Deprecated.Marks items as selected while deselecting all items not in the varargs array.booleansetSelected(Collection<?> itemIds)Deprecated.Marks items as selected while deselecting all items not in the given Collection.voidsetSelectionLimit(int selectionLimit)Deprecated.Sets the maximum number of rows that can be selected at once.voidsetUserSelectionAllowed(boolean userSelectionAllowed)Deprecated.Sets whether the user is allowed to change the selection.-
Methods inherited from class com.vaadin.v7.ui.Grid.AbstractSelectionModel
checkItemIdExists, checkItemIdsExist, destroyData, fireSelectionEvent, generateData, getItemId, isSelected, setGrid
-
Methods inherited from class com.vaadin.v7.ui.Grid.AbstractGridExtension
addComponentToGrid, getColumn, getParentGrid, refreshRow, remove, removeComponentFromGrid
-
Methods inherited from class com.vaadin.server.AbstractExtension
getParent, getSupportedParentType, setParent
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
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.v7.ui.Grid.SelectionModel
isSelected, setGrid
-
-
-
-
Field Detail
-
DEFAULT_MAX_SELECTIONS
public static final int DEFAULT_MAX_SELECTIONS
Deprecated.The default selection size limit.- See Also:
setSelectionLimit(int), Constant Field Values
-
-
Method Detail
-
extend
protected void extend(AbstractClientConnector target)
Deprecated.- Overrides:
extendin classGrid.AbstractGridExtension
-
select
public boolean select(Object... itemIds) throws IllegalArgumentException
Deprecated.Description copied from interface:Grid.SelectionModel.MultiMarks items as selected.This method does not clear any previous selection state, only adds to it.
- Specified by:
selectin interfaceGrid.SelectionModel.Multi- Parameters:
itemIds- the itemId(s) to mark as selected- Returns:
trueif the selection state changed.falseif all the given itemIds already were selected- Throws:
IllegalArgumentException- if theitemIdsvarargs array isnullor given itemIds don't exist in the container of Grid- See Also:
Grid.SelectionModel.Multi.deselect(Object...)
-
select
public boolean select(Collection<?> itemIds) throws IllegalArgumentException
Deprecated.Marks items as selected.This method does not clear any previous selection state, only adds to it.
All items might not be selected if the limit set using
setSelectionLimit(int)is exceeded.- Specified by:
selectin interfaceGrid.SelectionModel.Multi- Parameters:
itemIds- the itemIds to mark as selected- Returns:
trueif the selection state changed.falseif all the given itemIds already were selected- Throws:
IllegalArgumentException- ifitemIdsisnullor given itemIds don't exist in the container of Grid- See Also:
Grid.SelectionModel.Multi.deselect(Collection)
-
select
protected boolean select(Collection<?> itemIds, boolean refresh)
Deprecated.
-
setSelectionLimit
public void setSelectionLimit(int selectionLimit)
Deprecated.Sets the maximum number of rows that can be selected at once. This is a mechanism to prevent exhausting server memory in situations where users select lots of rows. If the limit is reached, newly selected rows will not become recorded.Old selections are not discarded if the current number of selected row exceeds the new limit.
The default limit is 1000 rows.
- Parameters:
selectionLimit- the non-negative selection limit to set- Throws:
IllegalArgumentException- if the limit is negative
-
getSelectionLimit
public int getSelectionLimit()
Deprecated.Gets the selection limit.- Returns:
- the selection limit
- See Also:
setSelectionLimit(int)
-
deselect
public boolean deselect(Object... itemIds) throws IllegalArgumentException
Deprecated.Description copied from interface:Grid.SelectionModel.MultiMarks items as deselected.- Specified by:
deselectin interfaceGrid.SelectionModel.Multi- Parameters:
itemIds- the itemId(s) to remove from being selected- Returns:
trueif the selection state changed.falseif none the given itemIds were selected previously- Throws:
IllegalArgumentException- if theitemIdsvarargs array isnull- See Also:
Grid.SelectionModel.Multi.select(Object...)
-
deselect
public boolean deselect(Collection<?> itemIds) throws IllegalArgumentException
Deprecated.Description copied from interface:Grid.SelectionModel.MultiMarks items as deselected.- Specified by:
deselectin interfaceGrid.SelectionModel.Multi- Parameters:
itemIds- the itemId(s) to remove from being selected- Returns:
trueif the selection state changed.falseif none the given itemIds were selected previously- Throws:
IllegalArgumentException- ifitemIdsisnull- See Also:
Grid.SelectionModel.Multi.select(Collection)
-
deselect
protected boolean deselect(Collection<?> itemIds, boolean refresh)
Deprecated.
-
selectAll
public boolean selectAll()
Deprecated.Description copied from interface:Grid.SelectionModel.MultiMarks all the items in the current Container as selected.- Specified by:
selectAllin interfaceGrid.SelectionModel.Multi- Returns:
trueif some items were previously not selected- See Also:
Grid.SelectionModel.Multi.deselectAll()
-
selectAll
protected boolean selectAll(boolean refresh)
Deprecated.
-
deselectAll
public boolean deselectAll()
Deprecated.Description copied from interface:Grid.SelectionModel.MultiMarks all the items in the current Container as deselected.- Specified by:
deselectAllin interfaceGrid.SelectionModel.Multi- Returns:
trueif some items were previously selected- See Also:
Grid.SelectionModel.Multi.selectAll()
-
deselectAll
protected boolean deselectAll(boolean refresh)
Deprecated.
-
getSelectedRows
public Collection<Object> getSelectedRows()
Deprecated.Returns a collection of all the currently selected itemIds.The returned Collection is in order of selection – the item that was first selected will be first in the collection, and so on. Should an item have been selected twice without being deselected in between, it will have remained in its original position.
- Specified by:
getSelectedRowsin interfaceGrid.SelectionModel- Overrides:
getSelectedRowsin classGrid.AbstractSelectionModel- Returns:
- a collection of all the currently selected itemIds
-
reset
public void reset()
Deprecated.Resets the selection model.Equivalent to calling
deselectAll()- Specified by:
resetin interfaceGrid.SelectionModel
-
setSelected
public boolean setSelected(Collection<?> itemIds) throws IllegalArgumentException
Deprecated.Description copied from interface:Grid.SelectionModel.MultiMarks items as selected while deselecting all items not in the given Collection.- Specified by:
setSelectedin interfaceGrid.SelectionModel.Multi- Parameters:
itemIds- the itemIds to mark as selected- Returns:
trueif the selection state changed.falseif all the given itemIds already were selected- Throws:
IllegalArgumentException- ifitemIdsisnullor given itemIds don't exist in the container of Grid
-
setSelected
public boolean setSelected(Object... itemIds) throws IllegalArgumentException
Deprecated.Description copied from interface:Grid.SelectionModel.MultiMarks items as selected while deselecting all items not in the varargs array.- Specified by:
setSelectedin interfaceGrid.SelectionModel.Multi- Parameters:
itemIds- the itemIds to mark as selected- Returns:
trueif the selection state changed.falseif all the given itemIds already were selected- Throws:
IllegalArgumentException- if theitemIdsvarargs array isnullor given itemIds don't exist in the container of Grid
-
getState
protected MultiSelectionModelState getState()
Deprecated.- Overrides:
getStatein classAbstractClientConnector
-
getState
protected MultiSelectionModelState getState(boolean markAsDirty)
Deprecated.- Overrides:
getStatein classAbstractClientConnector
-
isUserSelectionAllowed
public boolean isUserSelectionAllowed()
Deprecated.Description copied from interface:Grid.SelectionModel.HasUserSelectionAllowedChecks if the user is allowed to change the selection.- Specified by:
isUserSelectionAllowedin interfaceGrid.SelectionModel.HasUserSelectionAllowed- Returns:
trueif the user is allowed to change the selection,falseotherwise
-
setUserSelectionAllowed
public void setUserSelectionAllowed(boolean userSelectionAllowed)
Deprecated.Description copied from interface:Grid.SelectionModel.HasUserSelectionAllowedSets whether the user is allowed to change the selection.- Specified by:
setUserSelectionAllowedin interfaceGrid.SelectionModel.HasUserSelectionAllowed- Parameters:
userSelectionAllowed-trueif the user is allowed to change the selection,falseotherwise
-
-