com.extjs.gxt.ui.client.event
Interface SelectionProvider<M extends ModelData>

Type Parameters:
M - the model type
All Known Implementing Classes:
AbstractStoreSelectionModel, CellSelectionModel, CellTreeGridSelectionModel, CheckBoxSelectionModel, ComboBox, DataListBinder, DataViewBinder, GridSelectionModel, ListField, ListViewSelectionModel, SimpleComboBox, StoreBinder, TableBinder, ThemeSelector, TimeField, TreeBinder, TreeGridSelectionModel, TreePanelSelectionModel, TreeTableBinder

public interface SelectionProvider<M extends ModelData>

Interface for objects that provide a selection.


Method Summary
 void addSelectionChangedListener(SelectionChangedListener<M> listener)
          Add a selection changed listener.
 java.util.List<M> getSelection()
          Returns the current selection.
 void removeSelectionListener(SelectionChangedListener<M> listener)
          Removes a selection changed listener.
 void setSelection(java.util.List<M> selection)
          Sets the current selection for this selection provider.
 

Method Detail

getSelection

java.util.List<M> getSelection()
Returns the current selection.

Returns:
the current selection

addSelectionChangedListener

void addSelectionChangedListener(SelectionChangedListener<M> listener)
Add a selection changed listener.

Parameters:
listener - a selection changed listener

removeSelectionListener

void removeSelectionListener(SelectionChangedListener<M> listener)
Removes a selection changed listener.

Parameters:
listener - a selection changed listener

setSelection

void setSelection(java.util.List<M> selection)
Sets the current selection for this selection provider.

Parameters:
selection - the new selection