Package com.vaadin.v7.ui
Class Grid.SingleSelectionModel
- 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.SingleSelectionModel
-
- All Implemented Interfaces:
MethodEventSource
,ClientConnector
,Extension
,com.vaadin.shared.Connector
,DataGenerator
,Grid.SelectionModel
,Grid.SelectionModel.HasUserSelectionAllowed
,Grid.SelectionModel.Single
,Serializable
- Enclosing class:
- Grid
@Deprecated public static class Grid.SingleSelectionModel extends Grid.AbstractSelectionModel implements Grid.SelectionModel.Single, Grid.SelectionModel.HasUserSelectionAllowed
Deprecated.A default implementation of aSelectionModel.Single
.- 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 inherited from class com.vaadin.v7.ui.Grid.AbstractSelectionModel
selection
-
-
Constructor Summary
Constructors Constructor Description SingleSelectionModel()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
extend(AbstractClientConnector target)
Deprecated.Object
getSelectedRow()
Deprecated.Gets the item id of the currently selected item.protected SingleSelectionModelState
getState()
Deprecated.protected SingleSelectionModelState
getState(boolean markAsDirty)
Deprecated.boolean
isDeselectAllowed()
Deprecated.Sets whether it's allowed to deselect the selected row through the UI.boolean
isUserSelectionAllowed()
Deprecated.Checks if the user is allowed to change the selection.void
reset()
Deprecated.Resets the selection state.boolean
select(Object itemId)
Deprecated.Marks an item as selected.protected boolean
select(Object itemId, boolean refresh)
Deprecated.void
setDeselectAllowed(boolean deselectAllowed)
Deprecated.Sets whether it's allowed to deselect the selected row through the UI.void
setUserSelectionAllowed(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, getSelectedRows, 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
getSelectedRows, isSelected, setGrid
-
-
-
-
Method Detail
-
extend
protected void extend(AbstractClientConnector target)
Deprecated.- Overrides:
extend
in classGrid.AbstractGridExtension
-
select
public boolean select(Object itemId)
Deprecated.Description copied from interface:Grid.SelectionModel.Single
Marks an item as selected.- Specified by:
select
in interfaceGrid.SelectionModel.Single
- Parameters:
itemId
- the itemId to mark as selected;null
for deselect- Returns:
true
if the selection state changed.false
if the itemId already was selected
-
select
protected boolean select(Object itemId, boolean refresh)
Deprecated.
-
getSelectedRow
public Object getSelectedRow()
Deprecated.Description copied from interface:Grid.SelectionModel.Single
Gets the item id of the currently selected item.- Specified by:
getSelectedRow
in interfaceGrid.SelectionModel.Single
- Returns:
- the item id of the currently selected item, or
null
if nothing is selected
-
reset
public void reset()
Deprecated.Resets the selection state.If an item is selected, it will become deselected.
- Specified by:
reset
in interfaceGrid.SelectionModel
-
setDeselectAllowed
public void setDeselectAllowed(boolean deselectAllowed)
Deprecated.Description copied from interface:Grid.SelectionModel.Single
Sets whether it's allowed to deselect the selected row through the UI. Deselection is allowed by default.- Specified by:
setDeselectAllowed
in interfaceGrid.SelectionModel.Single
- Parameters:
deselectAllowed
-true
if the selected row can be deselected without selecting another row instead; otherwisefalse
.
-
isDeselectAllowed
public boolean isDeselectAllowed()
Deprecated.Description copied from interface:Grid.SelectionModel.Single
Sets whether it's allowed to deselect the selected row through the UI.- Specified by:
isDeselectAllowed
in interfaceGrid.SelectionModel.Single
- Returns:
true
if deselection is allowed; otherwisefalse
-
getState
protected SingleSelectionModelState getState()
Deprecated.- Overrides:
getState
in classAbstractClientConnector
-
getState
protected SingleSelectionModelState getState(boolean markAsDirty)
Deprecated.- Overrides:
getState
in classAbstractClientConnector
-
isUserSelectionAllowed
public boolean isUserSelectionAllowed()
Deprecated.Description copied from interface:Grid.SelectionModel.HasUserSelectionAllowed
Checks if the user is allowed to change the selection.- Specified by:
isUserSelectionAllowed
in interfaceGrid.SelectionModel.HasUserSelectionAllowed
- Returns:
true
if the user is allowed to change the selection,false
otherwise
-
setUserSelectionAllowed
public void setUserSelectionAllowed(boolean userSelectionAllowed)
Deprecated.Description copied from interface:Grid.SelectionModel.HasUserSelectionAllowed
Sets whether the user is allowed to change the selection.- Specified by:
setUserSelectionAllowed
in interfaceGrid.SelectionModel.HasUserSelectionAllowed
- Parameters:
userSelectionAllowed
-true
if the user is allowed to change the selection,false
otherwise
-
-