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
35
36
37
38
39
40
41
42
43
44
45
46
package org.litesoft.GWT.client.pavsupport;

import org.litesoft.GWT.client.util.*;

import com.google.gwt.place.shared.*;
import com.google.gwt.user.client.*;

public interface PlaceChanger {
    enum GoToPlace {
        AlreadyThere,
        NoActivity,
        CurrentActivityRejectedLeaving
    }

    /**
     * Returns the current place.
     *
     * @return a {@link Place} instance
     */
    Place getWhere();

    /**
     * Request a change to the previous place on the browser's history stack.
     * If there is a previous place on the browser's history stack, the location
     * changes and a {@link PlaceChangeEvent} is posted announcing the previous place.
     */
    void goBack();

    /**
     * Request a change to a new place (and if we get there, the resulting URL will
     * become the new top of the History Stack).
     * <p/>
     * It is not a given that we'll actually get there. First a
     * {@link PlaceChangeRequestEvent} will be posted to the event bus. If any
     * receivers post a warning message to that event, it will be presented to
     * the user via {@link WindowClose#confirm(String)} (which is typically a
     * call to {@link Window#confirm(String)}). If she cancels, the current
     * location will not change. Otherwise, the location changes and a
     * {@link PlaceChangeEvent} is posted announcing the new place.
     *
     * @param pNewPlace a {@link Place} instance
     *
     * @return null if going to pNewPlace, !null means NOT going and why
     */
    GoToPlace goForwardTo( Place pNewPlace );
}

Commits for litesoft/trunk/Java/GWT/Client/src/org/litesoft/GWT/client/pavsupport/PlaceChanger.java

Diff revisions: vs.
Revision Author Commited Message
950 Diff Diff GeorgeS picture GeorgeS Thu 19 Jun, 2014 17:57:04 +0000

New Lines

948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

728 Diff Diff GeorgeS picture GeorgeS Sat 16 Jun, 2012 23:39:49 +0000
727 Diff Diff GeorgeS picture GeorgeS Sat 16 Jun, 2012 17:41:06 +0000
718 Diff Diff GeorgeS picture GeorgeS Sun 10 Jun, 2012 01:44:05 +0000
717 Diff Diff GeorgeS picture GeorgeS Sun 10 Jun, 2012 01:19:03 +0000
712 GeorgeS picture GeorgeS Sat 09 Jun, 2012 22:46:04 +0000

Move PAV stuff into LiteSoft