litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/historian/Historian.java
|
@@ -1,38 +1,38 @@ |
1 |
|
- |
package org.litesoft.GWT.client.historian; |
2 |
|
- |
|
3 |
|
- |
import com.google.gwt.event.logical.shared.*; |
4 |
|
- |
import com.google.gwt.user.client.*; |
5 |
|
- |
|
6 |
|
- |
/** |
7 |
|
- |
* Interface to History related events. Provides nice |
8 |
|
- |
* isolation for unit testing, and allows pre- or post-processing of tokens. |
9 |
|
- |
* Methods correspond to the like named methods on {@link History}. |
10 |
|
- |
*/ |
11 |
|
- |
public interface Historian { |
12 |
|
- |
/** |
13 |
|
- |
* Adds a {@link com.google.gwt.event.logical.shared.ValueChangeEvent} |
14 |
|
- |
* handler to be informed of changes to the browser's history stack. |
15 |
|
- |
* <p/> |
16 |
|
- |
* Note: As this message does NOT return the Handler Registration, once registered there is not way to remove it. |
17 |
|
- |
*/ |
18 |
|
- |
void addValueChangeHandler( ValueChangeHandler<String> valueChangeHandler ); |
19 |
|
- |
|
20 |
|
- |
/** |
21 |
|
- |
* @return the current token. |
22 |
|
- |
*/ |
23 |
|
- |
String getToken(); |
24 |
|
- |
|
25 |
|
- |
/** |
26 |
|
- |
* Programmatic equivalent to the user pressing the browser's 'back' button. |
27 |
|
- |
* <p/> |
28 |
|
- |
* Note that this does not work correctly on Safari 2. |
29 |
|
- |
*/ |
30 |
|
- |
void back(); |
31 |
|
- |
|
32 |
|
- |
/** |
33 |
|
- |
* Adds a new browser history entry. Calling this method will cause |
34 |
|
- |
* {@link ValueChangeHandler#onValueChange(ValueChangeEvent)} |
35 |
|
- |
* to be called as well. |
36 |
|
- |
*/ |
37 |
|
- |
void newItem( String token, boolean issueEvent ); |
38 |
|
- |
} |
|
1 |
+ |
package org.litesoft.GWT.client.historian; |
|
2 |
+ |
|
|
3 |
+ |
import com.google.gwt.event.logical.shared.*; |
|
4 |
+ |
import com.google.gwt.user.client.*; |
|
5 |
+ |
|
|
6 |
+ |
/** |
|
7 |
+ |
* Interface to History related events. Provides nice |
|
8 |
+ |
* isolation for unit testing, and allows pre- or post-processing of tokens. |
|
9 |
+ |
* Methods correspond to the like named methods on {@link History}. |
|
10 |
+ |
*/ |
|
11 |
+ |
public interface Historian { |
|
12 |
+ |
/** |
|
13 |
+ |
* Adds a {@link com.google.gwt.event.logical.shared.ValueChangeEvent} |
|
14 |
+ |
* handler to be informed of changes to the browser's history stack. |
|
15 |
+ |
* <p/> |
|
16 |
+ |
* Note: As this message does NOT return the Handler Registration, once registered there is not way to remove it. |
|
17 |
+ |
*/ |
|
18 |
+ |
void addValueChangeHandler( ValueChangeHandler<String> valueChangeHandler ); |
|
19 |
+ |
|
|
20 |
+ |
/** |
|
21 |
+ |
* @return the current token. |
|
22 |
+ |
*/ |
|
23 |
+ |
String getToken(); |
|
24 |
+ |
|
|
25 |
+ |
/** |
|
26 |
+ |
* Programmatic equivalent to the user pressing the browser's 'back' button. |
|
27 |
+ |
* <p/> |
|
28 |
+ |
* Note that this does not work correctly on Safari 2. |
|
29 |
+ |
*/ |
|
30 |
+ |
void back(); |
|
31 |
+ |
|
|
32 |
+ |
/** |
|
33 |
+ |
* Adds a new browser history entry. Calling this method will cause |
|
34 |
+ |
* {@link ValueChangeHandler#onValueChange(ValueChangeEvent)} |
|
35 |
+ |
* to be called as well. |
|
36 |
+ |
*/ |
|
37 |
+ |
void newItem( String token, boolean issueEvent ); |
|
38 |
+ |
} |