com.extjs.gxt.ui.client.binder
Class DataViewBinder<M extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.binder.StoreBinder<ListStore<M>,DataView,M>
          extended by com.extjs.gxt.ui.client.binder.DataViewBinder<M>
Type Parameters:
M - the model type
All Implemented Interfaces:
Observable, SelectionProvider<M>

public class DataViewBinder<M extends ModelData>
extends StoreBinder<ListStore<M>,DataView,M>

A StoreBinder implementation for DataView.


Constructor Summary
DataViewBinder(DataView view, ListStore store)
          Creates a new data view binder.
 
Method Summary
 Component findItem(M model)
          Returns the matching component for the given model.
 ListStore getStore()
          Returns the binder's store.
 DataView getView()
          Returns the data view.
 
Methods inherited from class com.extjs.gxt.ui.client.binder.StoreBinder
addSelectionChangedListener, getSelection, init, isAutoSelect, isFiltered, isMask, removeSelectionListener, setAutoSelect, setIconProvider, setMask, setSelection, setSelection, setStringProvider, setStyleProvider
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, fireEvent, fireEvent, getFiresEvents, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataViewBinder

public DataViewBinder(DataView view,
                      ListStore store)
Creates a new data view binder.

Parameters:
view - the data view
store - the list store
Method Detail

findItem

public Component findItem(M model)
Description copied from class: StoreBinder
Returns the matching component for the given model.

Specified by:
findItem in class StoreBinder<ListStore<M extends ModelData>,DataView,M extends ModelData>
Parameters:
model - the model
Returns:
the component

getStore

public ListStore getStore()
Returns the binder's store.

Overrides:
getStore in class StoreBinder<ListStore<M extends ModelData>,DataView,M extends ModelData>
Returns:
the store

getView

public DataView getView()
Returns the data view.

Returns:
this view