org.onebusaway.webapp.gwt.viewkit
Class ListViewModel

java.lang.Object
  extended by org.onebusaway.webapp.gwt.viewkit.ListViewModel
All Implemented Interfaces:
ContextAware
Direct Known Subclasses:
BookmarksListViewModel, RecentStopsListViewModel, StopWithArrivalsAndDeparturesListViewModel

public class ListViewModel
extends Object
implements ContextAware


Constructor Summary
ListViewModel()
           
 
Method Summary
 void didReload()
           
 ListViewController getListViewController()
           
 ListViewRow getListViewRowForSectionAndRow(int sectionIndex, int rowIndex)
           
 int getNumberOfRowsInSection(int sectionIndex)
           
 int getNumberOfSections()
           
 void handleContext(List<String> path, Map<String,String> context)
           
 void onRowClick(ListViewController listViewController, int sectionIndex, int rowIndex)
           
 void retrieveContext(List<String> path, Map<String,String> context)
           
 void setListViewController(ListViewController listViewController)
           
protected  void setWillRespondToRowClicks(boolean willRespondToRowClicks)
           
 void willReload()
           
 boolean willRespondToRowClicks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListViewModel

public ListViewModel()
Method Detail

setListViewController

public void setListViewController(ListViewController listViewController)

getListViewController

public ListViewController getListViewController()

willReload

public void willReload()

didReload

public void didReload()

getNumberOfSections

public int getNumberOfSections()

getNumberOfRowsInSection

public int getNumberOfRowsInSection(int sectionIndex)

getListViewRowForSectionAndRow

public ListViewRow getListViewRowForSectionAndRow(int sectionIndex,
                                                  int rowIndex)

willRespondToRowClicks

public boolean willRespondToRowClicks()

onRowClick

public void onRowClick(ListViewController listViewController,
                       int sectionIndex,
                       int rowIndex)

handleContext

public void handleContext(List<String> path,
                          Map<String,String> context)
Specified by:
handleContext in interface ContextAware

retrieveContext

public void retrieveContext(List<String> path,
                            Map<String,String> context)
Specified by:
retrieveContext in interface ContextAware

setWillRespondToRowClicks

protected void setWillRespondToRowClicks(boolean willRespondToRowClicks)


Copyright © 2011 OneBusAway. All Rights Reserved.