Examples of WindowListener


Examples of ch.blackspirit.graphics.WindowListener

    properties.setDebugGL(true);
    canvas = new CanvasFactory().createRealtimeCanvasWindow(800, 600);
//    canvas = new CanvasFactory().createRealtimeCanvasFullscreen();
    context = canvas;
    imageFactory = canvas.getImageFactory();
    canvas.addWindowListener(new WindowListener() {
      public void windowActivated() {}
      public void windowClosed() {}
      public void windowClosing() {
        finish = true;
      }
View Full Code Here

Examples of charva.awt.event.WindowListener

    protected void processWindowEvent(WindowEvent evt_) {
        if (_windowListeners == null) return;

        Enumeration<WindowListener> e = _windowListeners.elements();
        while (e.hasMoreElements()) {
            WindowListener wl = (WindowListener) e.nextElement();
            switch (evt_.getID()) {

            case AWTEvent.WINDOW_CLOSING:
                wl.windowClosing(evt_);
                break;

            case AWTEvent.WINDOW_OPENED:
                wl.windowOpened(evt_);
                break;
            }
        }
    }
View Full Code Here

Examples of com.extjs.gxt.ui.client.event.WindowListener

      taskBar.removeTaskButton((TaskButton) window.getData("taskButton"));
    }
  }

  protected void initListeners() {
    listener = new WindowListener() {
      @Override
      public void windowActivate(WindowEvent we) {
        markActive(we.getWindow());
      }
View Full Code Here

Examples of com.extjs.gxt.ui.client.event.WindowListener

    window.setPlain(true);
    window.setModal(true);
    window.setBlinkModal(true);
    window.setHeading("Hello Window");
    window.setLayout(new FitLayout());
    window.addWindowListener(new WindowListener() {
      @Override
      public void windowHide(WindowEvent we) {
        Button open = we.getWindow().getData("open");
        open.focus();
      }
View Full Code Here

Examples of helper.WindowListener

     * Constructor
     * @param xComponentLoader A loader to load a document
     */
    public DocumentHandle(XComponentLoader xCompLoader) {
        this.xCompLoader = xCompLoader;
        wl = new WindowListener();
    }
View Full Code Here

Examples of java.awt.event.WindowListener

  /**
   * Displays the GUI during a RAD session. If the root component is neither a JFrame nor a JDialog, the a JFrame is
   * instantiated and the root is added into the new frames contentpane.
   */
  public void test() {
    WindowListener wl = new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        super.windowClosing(e);
        System.exit(0);
      }
    };
View Full Code Here

Examples of java.awt.event.WindowListener

     // don't share, or you might end up listening to stale old windows...
     // do window listeners keep a pointer to the things they listen to, or is it the other way around?
     // it seems like it's probably the other way around.
     // in which case, it's bad for observable things to stay around for longer than their observers.
     // anyways, the overhead of making a new one is pretty small.
     return new WindowListener() {
         public void windowActivated(WindowEvent e) {
           // nothing...
         }
         public void windowClosed(WindowEvent e) {
           node.store();
View Full Code Here

Examples of java.awt.event.WindowListener

    } else
      currentLocale = Locale.getDefault();

    frame = new BankAdmin(currentLocale);
    frame.setTitle(messages.getString("CustAndAccountAdmin"));
    WindowListener l = new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
  System.exit(0);
      }
    };
    frame.addWindowListener(l);
View Full Code Here

Examples of java.awt.event.WindowListener

  /**
   * Displays the GUI during a RAD session. If the root component is neither a JFrame nor a JDialog, the a JFrame is
   * instantiated and the root is added into the new frames contentpane.
   */
  public void test() {
    WindowListener wl = new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        super.windowClosing(e);
        System.exit(0);
      }
    };
View Full Code Here

Examples of java.awt.event.WindowListener

        p0.add(eventViewer);
        center_panel.add(p0, BorderLayout.SOUTH);

        final TCTool tctool = this;

        WindowListener wl = new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                memoryChart.stop();

                cache.deleteObserver(tctool);
                cache.disableDiagnostics();
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.