public class

NoSelectionModel

extends SelectionModel.AbstractSelectionModel<T>
java.lang.Object
   ↳ com.google.gwt.view.client.SelectionModel.AbstractSelectionModel<T>
     ↳ com.google.gwt.view.client.NoSelectionModel<T>

Class Overview

A selection model that does not allow selection, but fires selection change events. Use this model if you want to know when a user selects an item, but do not want the view to update based on the selection.

Summary

Public Constructors
NoSelectionModel()
Constructs a NoSelectionModel without a key provider.
NoSelectionModel(ProvidesKey<T> keyProvider)
Constructs a NoSelectionModel with the given key provider.
Public Methods
T getLastSelectedObject()
Gets the object that was last selected.
boolean isSelected(T object)
void setSelected(T object, boolean selected)
[Expand]
Inherited Methods
From class com.google.gwt.view.client.SelectionModel.AbstractSelectionModel
From class java.lang.Object
From interface com.google.gwt.event.shared.HasHandlers
From interface com.google.gwt.view.client.ProvidesKey
From interface com.google.gwt.view.client.SelectionModel

Public Constructors

public NoSelectionModel ()

Constructs a NoSelectionModel without a key provider.

public NoSelectionModel (ProvidesKey<T> keyProvider)

Constructs a NoSelectionModel with the given key provider.

Parameters
keyProvider an instance of ProvidesKey, or null if the record object should act as its own key

Public Methods

public T getLastSelectedObject ()

Gets the object that was last selected.

Returns
  • the last selected object

public boolean isSelected (T object)

public void setSelected (T object, boolean selected)