ccc.client.gwt.core
Class GWTWindow

java.lang.Object
  extended by ccc.client.gwt.core.GWTWindow
All Implemented Interfaces:
Window

public class GWTWindow
extends java.lang.Object
implements Window

GWT implementation of the Window API.

Author:
Civic Computing Ltd.

Nested Class Summary
static class GWTWindow.ExitHandler
          Handler for window closing.
 
Constructor Summary
GWTWindow()
           
 
Method Summary
 void alert(java.lang.String string)
          Factory for alert dialogs.
 boolean confirm(java.lang.String string)
          Factory for confirm dialogs.
 void disableExitConfirmation()
          Disable app confirmation from the user if they try to navigate away from the app.
 void enableExitConfirmation()
          Configure the app to request confirmation from the user if they try to navigate away from the app.
 java.lang.String getParameter(java.lang.String string)
          Get a startup parameter.
 void redirectTo(java.lang.String relativeURL)
          Redirect to another url.
 void refresh()
          Refresh the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GWTWindow

public GWTWindow()
Method Detail

alert

public void alert(java.lang.String string)
Factory for alert dialogs.

Specified by:
alert in interface Window
Parameters:
string - The message for the dialog.

confirm

public boolean confirm(java.lang.String string)
Factory for confirm dialogs.

Specified by:
confirm in interface Window
Parameters:
string - The message for the dialog.
Returns:
True if the user confirmed the action, false otherwise.

refresh

public void refresh()
Refresh the application.

Specified by:
refresh in interface Window

redirectTo

public void redirectTo(java.lang.String relativeURL)
Redirect to another url. Use with caution the application will exit and all local state will be lost.

Specified by:
redirectTo in interface Window
Parameters:
relativeURL - The host-relative URL.

getParameter

public java.lang.String getParameter(java.lang.String string)
Get a startup parameter.

Specified by:
getParameter in interface Window
Parameters:
string - The parameter name.
Returns:
The parameter's value, as a String; NULL if no parameter exists.

disableExitConfirmation

public void disableExitConfirmation()
Disable app confirmation from the user if they try to navigate away from the app.

Specified by:
disableExitConfirmation in interface Window

enableExitConfirmation

public void enableExitConfirmation()
Configure the app to request confirmation from the user if they try to navigate away from the app.

Specified by:
enableExitConfirmation in interface Window


Copyright © 2010. All Rights Reserved.