Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/pavsupport/Activity.java

Diff revisions: vs.
  @@ -1,34 +1,34 @@
1 - package org.litesoft.GWT.client.pavsupport;
2 -
3 - import com.google.gwt.user.client.ui.*;
4 -
5 - public interface Activity {
6 - /**
7 - * Called when the user is trying to navigate away from this activity.
8 - *
9 - * @return A message to display to the user, e.g. to warn of unsaved work, or
10 - * null to say nothing
11 - */
12 - String mayStop();
13 -
14 - /**
15 - * Called when {@link #start} has not yet replied to its callback, but the
16 - * user has lost interest.
17 - */
18 - void onCancel();
19 -
20 - /**
21 - * Called when the Activity's widget has been removed from view.
22 - */
23 - void onStop();
24 -
25 - /**
26 - * Called when the Activity should ready its widget for the user. When the
27 - * widget is ready (typically after an RPC response has been received),
28 - * receiver should present it by calling
29 - * {@link AcceptsOneWidget#setWidget} on the given panel.
30 - *
31 - * @param panel the panel to display this activity's widget when it is ready
32 - */
33 - void start( AcceptsOneWidget panel );
34 - }
1 + package org.litesoft.GWT.client.pavsupport;
2 +
3 + import com.google.gwt.user.client.ui.*;
4 +
5 + public interface Activity {
6 + /**
7 + * Called when the user is trying to navigate away from this activity.
8 + *
9 + * @return A message to display to the user, e.g. to warn of unsaved work, or
10 + * null to say nothing
11 + */
12 + String mayStop();
13 +
14 + /**
15 + * Called when {@link #start} has not yet replied to its callback, but the
16 + * user has lost interest.
17 + */
18 + void onCancel();
19 +
20 + /**
21 + * Called when the Activity's widget has been removed from view.
22 + */
23 + void onStop();
24 +
25 + /**
26 + * Called when the Activity should ready its widget for the user. When the
27 + * widget is ready (typically after an RPC response has been received),
28 + * receiver should present it by calling
29 + * {@link AcceptsOneWidget#setWidget} on the given panel.
30 + *
31 + * @param panel the panel to display this activity's widget when it is ready
32 + */
33 + void start( AcceptsOneWidget panel );
34 + }