|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.connectors.AbstractSelectionModelConnector.AbstractSelectionModel
com.vaadin.client.connectors.SingleSelectionModelConnector.SingleSelectionModel
public class SingleSelectionModelConnector.SingleSelectionModel
SingleSelectionModel without a selection column renderer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel |
|---|
SelectionModel.Multi<T>, SelectionModel.None<T>, SelectionModel.Single<T> |
| Constructor Summary | |
|---|---|
SingleSelectionModelConnector.SingleSelectionModel()
|
|
| Method Summary | |
|---|---|
boolean |
deselect(elemental.json.JsonObject row)
Deselects a row. |
elemental.json.JsonObject |
getSelectedRow()
Returns the currently selected row. |
Renderer<java.lang.Boolean> |
getSelectionColumnRenderer()
Return the Renderer responsible for rendering the selection
column. |
boolean |
isDeselectAllowed()
Sets whether it's allowed to deselect the selected row through the UI. |
void |
reset()
Resets the SelectionModel to the initial state. |
boolean |
select(elemental.json.JsonObject row)
Selects a row. |
void |
setDeselectAllowed(boolean deselectAllowed)
Sets whether it's allowed to deselect the selected row through the UI. |
| Methods inherited from class com.vaadin.client.connectors.AbstractSelectionModelConnector.AbstractSelectionModel |
|---|
getSelectedRows, isSelected, setGrid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel |
|---|
getSelectedRows, isSelected, setGrid |
| Constructor Detail |
|---|
public SingleSelectionModelConnector.SingleSelectionModel()
| Method Detail |
|---|
public Renderer<java.lang.Boolean> getSelectionColumnRenderer()
SelectionModelRenderer responsible for rendering the selection
column.
getSelectionColumnRenderer in interface SelectionModel<elemental.json.JsonObject>public void reset()
SelectionModelThis method can be called internally, for example, when the attached Grid's data source changes.
reset in interface SelectionModel<elemental.json.JsonObject>reset in class AbstractSelectionModelConnector.AbstractSelectionModelpublic boolean select(elemental.json.JsonObject row)
SelectionModel.Single
select in interface SelectionModel.Single<elemental.json.JsonObject>row - a Grid row object
public boolean deselect(elemental.json.JsonObject row)
SelectionModel.Single
This is a no-op unless row is the currently selected row.
deselect in interface SelectionModel.Single<elemental.json.JsonObject>row - a Grid row object
public elemental.json.JsonObject getSelectedRow()
SelectionModel.Single
getSelectedRow in interface SelectionModel.Single<elemental.json.JsonObject>Grid row object or null, if nothing is selected.public void setDeselectAllowed(boolean deselectAllowed)
SelectionModel.Single
setDeselectAllowed in interface SelectionModel.Single<elemental.json.JsonObject>deselectAllowed - true if the selected row can be deselected
without selecting another row instead; otherwise
false.public boolean isDeselectAllowed()
SelectionModel.Single
isDeselectAllowed in interface SelectionModel.Single<elemental.json.JsonObject>true if deselection is allowed; otherwise
false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||