Subversion Repository Public Repository

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
package org.litesoft.sandbox.infrastructure.client;

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 );
}

Commits for litesoft/trunk/GWT_Sandbox/MultiModule/common/src/org/litesoft/sandbox/infrastructure/client/Activity.java

Diff revisions: vs.
Revision Author Commited Message
948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

551 Diff Diff GeorgeS picture GeorgeS Tue 11 Oct, 2011 03:28:49 +0000
544 GeorgeS picture GeorgeS Fri 07 Oct, 2011 12:28:12 +0000