ccc.client.core
Interface Window

All Known Implementing Classes:
GWTWindow

public interface Window

API for accessing the UI window.

Author:
Civic Computing Ltd.

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.
 

Method Detail

alert

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

Parameters:
string - The message for the dialog.

confirm

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

Parameters:
string - The message for the dialog.
Returns:
True if the user confirmed the action, false otherwise.

refresh

void refresh()
Refresh the application.


redirectTo

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

Parameters:
relativeURL - The host-relative URL.

getParameter

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

Parameters:
string - The parameter name.
Returns:
The parameter's value, as a String; NULL if no parameter exists.

enableExitConfirmation

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


disableExitConfirmation

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



Copyright © 2010. All Rights Reserved.