public abstract class

AbstractActivity

extends Object
implements Activity
java.lang.Object
   ↳ com.google.gwt.activity.shared.AbstractActivity

Class Overview

Simple Activity implementation that is always willing to stop, and does nothing onStop and onCancel.

Summary

Public Constructors
AbstractActivity()
Public Methods
String mayStop()
Called when the user is trying to navigate away from this activity.
void onCancel()
Called when start(AcceptsOneWidget, EventBus) has not yet replied to its callback, but the user has lost interest.
void onStop()
Called when the Activity's widget has been removed from view.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.activity.shared.Activity

Public Constructors

public AbstractActivity ()

Public Methods

public String mayStop ()

Called when the user is trying to navigate away from this activity.

Returns
  • A message to display to the user, e.g. to warn of unsaved work, or null to say nothing

public void onCancel ()

Called when start(AcceptsOneWidget, EventBus) has not yet replied to its callback, but the user has lost interest.

public void onStop ()

Called when the Activity's widget has been removed from view. All event handlers it registered will have been removed before this method is called.