com.sencha.gxt.widget.core.client
Class ListViewSelectionModel<M>

java.lang.Object
  extended by com.sencha.gxt.widget.core.client.selection.AbstractStoreSelectionModel<M>
      extended by com.sencha.gxt.widget.core.client.ListViewSelectionModel<M>
Type Parameters:
M - the model type
All Implemented Interfaces:
HasBeforeSelectionHandlers<M>, HasSelectionHandlers<M>, HasHandlers, SelectionChangedEvent.HasSelectionChangedHandlers<M>, StoreSelectionModel<M>

public class ListViewSelectionModel<M>
extends AbstractStoreSelectionModel<M>

ListView selection model.


Constructor Summary
ListViewSelectionModel()
           
 
Method Summary
 void bindList(ListView<M,?> listView)
          Binds the list view to the selection model.
 boolean isVertical()
          Returns true if up and down arrow keys are used for navigation.
 void setVertical(boolean isVertical)
          Sets if up and down arrow keys or left and right arrow keys should be used (defaults to true).
 
Methods inherited from class com.sencha.gxt.widget.core.client.selection.AbstractStoreSelectionModel
addBeforeSelectionHandler, addSelectionChangedHandler, addSelectionHandler, bind, deselect, deselect, deselect, deselect, deselect, deselectAll, fireEvent, getSelectedItem, getSelectedItems, getSelection, getSelectionMode, isLocked, isSelected, refresh, select, select, select, select, select, selectAll, setLocked, setSelection, setSelectionMode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListViewSelectionModel

public ListViewSelectionModel()
Method Detail

bindList

public void bindList(ListView<M,?> listView)
Binds the list view to the selection model.

Parameters:
listView - the list view

isVertical

public boolean isVertical()
Returns true if up and down arrow keys are used for navigation. Else left and right arrow keys are used.

Returns:
the isVertical

setVertical

public void setVertical(boolean isVertical)
Sets if up and down arrow keys or left and right arrow keys should be used (defaults to true).

Parameters:
isVertical - the isVertical to set


Copyright © 2012. All Rights Reserved.