Examples of WindowCloseListener


Examples of com.google.gwt.user.client.WindowCloseListener

    return $doc.body;
  }-*/;

  private static void hookWindowClosing() {
    // Catch the window closing event.
    Window.addWindowCloseListener(new WindowCloseListener() {
      public void onWindowClosed() {
        // When the window is closing, detach all root panels. This will cause
        // all of their children's event listeners to be unhooked, which will
        // avoid potential memory leaks.
        for (Iterator it = rootPanels.values().iterator(); it.hasNext();) {
View Full Code Here

Examples of com.google.gwt.user.client.WindowCloseListener

  protected void throwUnableToFindBean(final String message) throws UnableToFindBeanException {
    throw new UnableToFindBeanException(message);
  }

  protected void registerShutdownHook() {
    Window.addWindowCloseListener(new WindowCloseListener() {
      public String onWindowClosing() {
        return null;
      }

      public void onWindowClosed() {
View Full Code Here

Examples of com.mmi.pllTrainer.gui.listener.WindowCloseListener

    this.frame = new MainFrame("2-Sides-PLL", cubeView, cubeModel);

    // Listeners
    this.frame.addKeyListener(new ResetCubeViewListener(this.cubeModel));
    this.frame.addKeyListener(new SpaceListener(this.cubeModel));
    this.frame.addWindowListener(new WindowCloseListener(this.cubeModel));

    // Observers
    this.cubeModel.addObserver(this.cubeView);
  }
View Full Code Here

Examples of com.mmi.pllTrainer.gui.listener.WindowCloseListener

    JMenuItem exitItem = new JMenuItem("Exit");
    exitItem.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        new WindowCloseListener(MenuBar.this.cubeModel).windowClosing(null);
      }
    });

    fileMenu.add(exitItem);
    return fileMenu;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.