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 voidextend(AbstractClientConnector target)Deprecated.ObjectgetSelectedRow()Deprecated.Gets the item id of the currently selected item.protected SingleSelectionModelStategetState()Deprecated.protected SingleSelectionModelStategetState(boolean markAsDirty)Deprecated.booleanisDeselectAllowed()Deprecated.Sets whether it's allowed to deselect the selected row through the UI.booleanisUserSelectionAllowed()Deprecated.Checks if the user is allowed to change the selection.voidreset()Deprecated.Resets the selection state.booleanselect(Object itemId)Deprecated.Marks an item as selected.protected booleanselect(Object itemId, boolean refresh)Deprecated.voidsetDeselectAllowed(boolean deselectAllowed)Deprecated.Sets whether it's allowed to deselect the selected row through the UI.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, 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:
extendin classGrid.AbstractGridExtension
-
select
public boolean select(Object itemId)
Deprecated.Description copied from interface:Grid.SelectionModel.SingleMarks an item as selected.- Specified by:
selectin interfaceGrid.SelectionModel.Single- Parameters:
itemId- the itemId to mark as selected;nullfor deselect- Returns:
trueif the selection state changed.falseif 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.SingleGets the item id of the currently selected item.- Specified by:
getSelectedRowin interfaceGrid.SelectionModel.Single- Returns:
- the item id of the currently selected item, or
nullif nothing is selected
-
reset
public void reset()
Deprecated.Resets the selection state.If an item is selected, it will become deselected.
- Specified by:
resetin interfaceGrid.SelectionModel
-
setDeselectAllowed
public void setDeselectAllowed(boolean deselectAllowed)
Deprecated.Description copied from interface:Grid.SelectionModel.SingleSets whether it's allowed to deselect the selected row through the UI. Deselection is allowed by default.- Specified by:
setDeselectAllowedin interfaceGrid.SelectionModel.Single- Parameters:
deselectAllowed-trueif the selected row can be deselected without selecting another row instead; otherwisefalse.
-
isDeselectAllowed
public boolean isDeselectAllowed()
Deprecated.Description copied from interface:Grid.SelectionModel.SingleSets whether it's allowed to deselect the selected row through the UI.- Specified by:
isDeselectAllowedin interfaceGrid.SelectionModel.Single- Returns:
trueif deselection is allowed; otherwisefalse
-
getState
protected SingleSelectionModelState getState()
Deprecated.- Overrides:
getStatein classAbstractClientConnector
-
getState
protected SingleSelectionModelState 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
-
-