litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
package com.temp.client.foundation.pavment;
import com.google.gwt.user.client.ui.*;
public interface Activity {
/**
* Called when the user is trying to navigate away from this activity.
*
* @return A message to display to the user, e.g. to warn of unsaved work,
* or null to say nothing
*/
String mayStop();
/**
* Called when {@link #start} has not yet replied to its callback, but the
* user has lost interest.
*/
void onCancel();
/**
* Called when the Activity's widget has been removed from view.
*/
void onStop();
/**
* Called when the Activity should ready its widget for the user. When the
* widget is ready (typically after an RPC response has been received),
* receiver should present it by calling {@link AcceptsOneWidget#setWidget}
* on the given panel.
*
* @param panel
* the panel to display this activity's widget when it is ready
*/
void start(AcceptsOneWidget panel);
/**
* Called when the Activity should refresh its view's data.
*
* This should result in the same "view" as if 'start' had just been called.
*
* It is called when, for whatever reason, a 'place' change is request that
* would have resulted in the same activity being instantiated & started
* with the same data (i.e. with obfuscation, the URL Fragment would have
* been the same, and hence, the browser is free to NOT dispatch a History
* Change Event).
*/
void refresh();
}
|
Revision |
Author |
Commited |
Message |
626
|
GeorgeS
|
Wed 11 Apr, 2012 19:39:41 +0000 |
|