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
|
package org.litesoft.sandbox.infrastructure.client.internal;
import com.google.gwt.event.logical.shared.*;
import com.google.gwt.user.client.*;
/**
* Interface to History related events. Provides nice
* isolation for unit testing, and allows pre- or post-processing of tokens.
* Methods correspond to the like named methods on {@link History}.
*/
public interface Historian
{
/**
* Adds a {@link com.google.gwt.event.logical.shared.ValueChangeEvent}
* handler to be informed of changes to the browser's history stack.
* <p/>
* Note: As this message does NOT return the Handler Registration, once registered there is not way to remove it.
*/
void addValueChangeHandler( ValueChangeHandler<String> valueChangeHandler );
/**
* @return the current history token.
*/
String getToken();
/**
* Adds a new browser history entry. Calling this method will cause
* {@link ValueChangeHandler#onValueChange(ValueChangeEvent)}
* to be called as well.
*/
void newItem( String token, boolean issueEvent );
}
|
Revision |
Author |
Commited |
Message |
558
|
GeorgeS
|
Tue 11 Oct, 2011 21:13:01 +0000 |
|