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
package org.litesoft.sandbox.infrastructure.client;

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

/**
 * Interface to Window-related events. Provides nice
 * isolation for unit testing, and allows customization of confirmation
 * handling.
 */
public interface WindowClose {
    /**
     * Adds a {@link Window.ClosingHandler} to the Delegate.
     *
     * @param pHandler a {@link Window.ClosingHandler} instance
     *
     * @return a {@link HandlerRegistration} instance
     */
    HandlerRegistration addWindowClosingHandler( Window.ClosingHandler pHandler );

    /**
     * Called to confirm a window closing event.
     *
     * @param pMessage a warning message
     *
     * @return true to allow the window closing
     */
    boolean confirm( String pMessage );
}

Commits for litesoft/trunk/GWT_Sandbox/MultiModule/common/src/org/litesoft/sandbox/infrastructure/client/WindowClose.java

Diff revisions: vs.
Revision Author Commited Message
948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

546 GeorgeS picture GeorgeS Sun 09 Oct, 2011 02:25:08 +0000