com.google.gwt.app.place
Class AbstractRecordListActivity<R extends Record>

java.lang.Object
  extended by com.google.gwt.app.place.AbstractRecordListActivity<R>
Type Parameters:
R - the type of Record listed
All Implemented Interfaces:
Activity, RecordListView.Delegate<R>, ListView.Delegate<R>

public abstract class AbstractRecordListActivity<R extends Record>
extends java.lang.Object
implements Activity, RecordListView.Delegate<R>, ListView.Delegate<R>

Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk.

Abstract activity for requesting and displaying a list of .

Subclasses must:

Only the properties required by the view will be requested.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.app.place.Activity
Activity.Display
 
Constructor Summary
AbstractRecordListActivity(RecordListView<R> view)
           
 
Method Summary
 RecordListView<R> getView()
           
 void onCancel()
          Called when Activity.start(com.google.gwt.app.place.Activity.Display) has not yet replied to its callback, but the user has lost interest.
 void onRangeChanged(ListView<R> listView)
          Called by the table as it needs data.
 void onStop()
          Called when the Activity's widget has been removed from view.
 void select(java.lang.String id)
          Select the record if it happens to be visible, or clear the selection if called with null or "".
 void start(Activity.Display display)
          Called when the Activity should prepare its IsWidget for the user.
 void update(WriteOperation writeOperation, R record)
           
 boolean willStop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.gwt.app.place.RecordListView.Delegate
createClicked
 

Constructor Detail

AbstractRecordListActivity

public AbstractRecordListActivity(RecordListView<R> view)
Method Detail

getView

public RecordListView<R> getView()

onCancel

public void onCancel()
Description copied from interface: Activity
Called when Activity.start(com.google.gwt.app.place.Activity.Display) has not yet replied to its callback, but the user has lost interest.

Specified by:
onCancel in interface Activity

onRangeChanged

public void onRangeChanged(ListView<R> listView)
Called by the table as it needs data.

Specified by:
onRangeChanged in interface ListView.Delegate<R extends Record>

onStop

public void onStop()
Description copied from interface: Activity
Called when the Activity's widget has been removed from view.

Specified by:
onStop in interface Activity

select

public void select(java.lang.String id)
Select the record if it happens to be visible, or clear the selection if called with null or "".


start

public void start(Activity.Display display)
Description copied from interface: Activity
Called when the Activity should prepare its IsWidget for the user. Once the widget is ready (typically after an RPC response has been received), receiver should present it via Activity.Display.showActivityWidget(IsWidget).

Specified by:
start in interface Activity
Parameters:
display - the panel to display this activity's widget when it is ready

update

public void update(WriteOperation writeOperation,
                   R record)

willStop

public boolean willStop()
Specified by:
willStop in interface Activity