Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/GWT_Sandbox/MultiModule/common/src/org/litesoft/sandbox/infrastructure/client/PlaceChanger.java

Diff revisions: vs.
  @@ -1,34 +1,34 @@
1 - package org.litesoft.sandbox.infrastructure.client;
2 -
3 - import com.google.gwt.place.shared.*;
4 - import com.google.gwt.user.client.*;
5 -
6 - public interface PlaceChanger {
7 - enum GoToPlace {
8 - AlreadyThere,
9 - NoActivity,
10 - CurrentActivityRejectedLeaving
11 - }
12 -
13 - /**
14 - * Returns the current place.
15 - *
16 - * @return a {@link Place} instance
17 - */
18 - public Place getWhere();
19 -
20 - /**
21 - * Request a change to a new place. It is not a given that we'll actually get
22 - * there. First a {@link PlaceChangeRequestEvent} will be posted to the
23 - * event bus. If any receivers post a warning message to that event, it will
24 - * be presented to the user via {@link WindowClose#confirm(String)} (which is
25 - * typically a call to {@link Window#confirm(String)}). If she cancels, the
26 - * current location will not change. Otherwise, the location changes and a
27 - * {@link PlaceChangeEvent} is posted announcing the new place.
28 - *
29 - * @param pNewPlace a {@link Place} instance
30 - *
31 - * @return null if going to pNewPlace, !null means NOT going and why
32 - */
33 - public GoToPlace goTo( Place pNewPlace );
34 - }
1 + package org.litesoft.sandbox.infrastructure.client;
2 +
3 + import com.google.gwt.place.shared.*;
4 + import com.google.gwt.user.client.*;
5 +
6 + public interface PlaceChanger {
7 + enum GoToPlace {
8 + AlreadyThere,
9 + NoActivity,
10 + CurrentActivityRejectedLeaving
11 + }
12 +
13 + /**
14 + * Returns the current place.
15 + *
16 + * @return a {@link Place} instance
17 + */
18 + public Place getWhere();
19 +
20 + /**
21 + * Request a change to a new place. It is not a given that we'll actually get
22 + * there. First a {@link PlaceChangeRequestEvent} will be posted to the
23 + * event bus. If any receivers post a warning message to that event, it will
24 + * be presented to the user via {@link WindowClose#confirm(String)} (which is
25 + * typically a call to {@link Window#confirm(String)}). If she cancels, the
26 + * current location will not change. Otherwise, the location changes and a
27 + * {@link PlaceChangeEvent} is posted announcing the new place.
28 + *
29 + * @param pNewPlace a {@link Place} instance
30 + *
31 + * @return null if going to pNewPlace, !null means NOT going and why
32 + */
33 + public GoToPlace goTo( Place pNewPlace );
34 + }