Package com.google.gwt.user.client.Window

Examples of com.google.gwt.user.client.Window.ClosingHandler


      public void onBlur(BlurEvent event) {
        saveInstances();
      }
    });

    Window.addWindowClosingHandler(new ClosingHandler() {
      public void onWindowClosing(ClosingEvent event) {
        saveInstances();
      }
    });
  }
View Full Code Here


  }
  private void bootAfterDeserialize()
  {

   
    closeHandlder = Window.addWindowClosingHandler(new ClosingHandler()
    {
       public void onWindowClosing(ClosingEvent event)
       {
         //logout();
         shotdown(new AsyncCallback<Boolean>()
View Full Code Here

        new UndoActionStateController(commandManager, undoAction).init();
    }

    protected void initWindowClosingConfirmationDialog() {
        Window.addWindowClosingHandler(new ClosingHandler() {
            @Override
            public void onWindowClosing(ClosingEvent event) {
                event.setMessage("Unsaved changes to the workspace will be lost.");
            }
        });
View Full Code Here

   * @param delegate the {@link Delegate} in charge of Window-related events
   */
  public PlaceController(EventBus eventBus, Delegate delegate) {
    this.eventBus = eventBus;
    this.delegate = delegate;
    delegate.addWindowClosingHandler(new ClosingHandler() {
      public void onWindowClosing(ClosingEvent event) {
        String warning = maybeGoTo(Place.NOWHERE);
        if (warning != null) {
          event.setMessage(warning);
        }
View Full Code Here

   * Create a new PlaceController.
   */
  public PlaceController(EventBus eventBus, Delegate delegate) {
    this.eventBus = eventBus;
    this.delegate = delegate;
    delegate.addWindowClosingHandler(new ClosingHandler() {
      public void onWindowClosing(ClosingEvent event) {
        String warning = maybeGoTo(Place.NOWHERE);
        if (warning != null) {
          event.setMessage(warning);
        }
View Full Code Here

    initWindowClosingHandler();
  }

  private void initWindowClosingHandler() {
    Window.addWindowClosingHandler(new ClosingHandler() {

      @Override
      public void onWindowClosing(ClosingEvent event) {
        if (_listener != null && _listener.windowClosing()) {
          event.setMessage("There are unsaved changes in your mind map. Are you sure you want to close this window?");
View Full Code Here

     * Setup window title, closing and close handlers.
     */

    Window.setTitle(context.getConstants().applicationTitle());

    Window.addWindowClosingHandler(new ClosingHandler() {
      public void onWindowClosing(ClosingEvent event) {
        event.setMessage(Application.application.getClosingHandlerMessage());
      }
    });

View Full Code Here

        } else {
            handleStandaloneMode( Window.Location.getParameterMap() );
        }

        //Save Workbench state when Window is closed
        Window.addWindowClosingHandler( new ClosingHandler() {

            @Override
            public void onWindowClosing( ClosingEvent event ) {
                workbenchCloseHandler.onWindowClose( workbenchCloseCommand );
            }
View Full Code Here

   * @param delegate the {@link Delegate} in charge of Window-related events
   */
  public PlaceController(EventBus eventBus, Delegate delegate) {
    this.eventBus = eventBus;
    this.delegate = delegate;
    delegate.addWindowClosingHandler(new ClosingHandler() {
      public void onWindowClosing(ClosingEvent event) {
        String warning = maybeGoTo(Place.NOWHERE);
        if (warning != null) {
          event.setMessage(warning);
        }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.Window.ClosingHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.