litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/util/WindowClose.java
|
@@ -1,29 +1,29 @@ |
1 |
|
- |
package org.litesoft.GWT.client.util; |
2 |
|
- |
|
3 |
|
- |
import com.google.gwt.event.shared.*; |
4 |
|
- |
import com.google.gwt.user.client.*; |
5 |
|
- |
|
6 |
|
- |
/** |
7 |
|
- |
* Interface to Window-related events. Provides nice |
8 |
|
- |
* isolation for unit testing, and allows customization of confirmation |
9 |
|
- |
* handling. |
10 |
|
- |
*/ |
11 |
|
- |
public interface WindowClose { |
12 |
|
- |
/** |
13 |
|
- |
* Adds a {@link Window.ClosingHandler} to the Delegate. |
14 |
|
- |
* |
15 |
|
- |
* @param pHandler a {@link Window.ClosingHandler} instance |
16 |
|
- |
* |
17 |
|
- |
* @return a {@link HandlerRegistration} instance |
18 |
|
- |
*/ |
19 |
|
- |
HandlerRegistration addWindowClosingHandler( Window.ClosingHandler pHandler ); |
20 |
|
- |
|
21 |
|
- |
/** |
22 |
|
- |
* Called to confirm a window closing event. |
23 |
|
- |
* |
24 |
|
- |
* @param pMessage a warning message |
25 |
|
- |
* |
26 |
|
- |
* @return true to allow the window closing |
27 |
|
- |
*/ |
28 |
|
- |
boolean confirm( String pMessage ); |
29 |
|
- |
} |
|
1 |
+ |
package org.litesoft.GWT.client.util; |
|
2 |
+ |
|
|
3 |
+ |
import com.google.gwt.event.shared.*; |
|
4 |
+ |
import com.google.gwt.user.client.*; |
|
5 |
+ |
|
|
6 |
+ |
/** |
|
7 |
+ |
* Interface to Window-related events. Provides nice |
|
8 |
+ |
* isolation for unit testing, and allows customization of confirmation |
|
9 |
+ |
* handling. |
|
10 |
+ |
*/ |
|
11 |
+ |
public interface WindowClose { |
|
12 |
+ |
/** |
|
13 |
+ |
* Adds a {@link Window.ClosingHandler} to the Delegate. |
|
14 |
+ |
* |
|
15 |
+ |
* @param pHandler a {@link Window.ClosingHandler} instance |
|
16 |
+ |
* |
|
17 |
+ |
* @return a {@link HandlerRegistration} instance |
|
18 |
+ |
*/ |
|
19 |
+ |
HandlerRegistration addWindowClosingHandler( Window.ClosingHandler pHandler ); |
|
20 |
+ |
|
|
21 |
+ |
/** |
|
22 |
+ |
* Called to confirm a window closing event. |
|
23 |
+ |
* |
|
24 |
+ |
* @param pMessage a warning message |
|
25 |
+ |
* |
|
26 |
+ |
* @return true to allow the window closing |
|
27 |
+ |
*/ |
|
28 |
+ |
boolean confirm( String pMessage ); |
|
29 |
+ |
} |