Examples of removeComponentListener()


Examples of java.awt.Component.removeComponentListener()

/* 1305 */     if (!this.offScreen) {
/* 1306 */       if (this.canvasViewEventCatcher.parentList.size() > 0)
/*      */       {
/* 1309 */         for (int i = 0; i < this.canvasViewEventCatcher.parentList.size(); i++) {
/* 1310 */           Component comp = (Component)this.canvasViewEventCatcher.parentList.get(i);
/* 1311 */           comp.removeComponentListener(this.canvasViewEventCatcher);
/*      */         }
/* 1313 */         this.canvasViewEventCatcher.parentList.clear();
/*      */       }
/*      */
/* 1316 */       Component parent = getParent();
View Full Code Here

Examples of java.awt.Component.removeComponentListener()

/* 1448 */       if (this.canvasViewEventCatcher.parentList.size() > 0)
/*      */       {
/* 1450 */         for (int i = this.canvasViewEventCatcher.parentList.size() - 1; i >= 0; i--) {
/* 1451 */           Component comp = (Component)this.canvasViewEventCatcher.parentList.get(i);
/*      */
/* 1453 */           comp.removeComponentListener(this.canvasViewEventCatcher);
/*      */         }
/* 1455 */         this.canvasViewEventCatcher.parentList.clear();
/*      */       }
/*      */
/* 1459 */       removeComponentListener(this.canvasViewEventCatcher);
View Full Code Here

Examples of java.awt.Component.removeComponentListener()

    }

    void removeListeners(Component ancestor) {
        Component a;
        for (a = ancestor; a != null; a = a.getParent()) {
            a.removeComponentListener(this);
            if (a instanceof JComponent) {
                JComponent jAncestor = (JComponent)a;
                jAncestor.removePropertyChangeListener(this);
            }
            if (a == firstInvisibleAncestor || a instanceof Window) {
View Full Code Here

Examples of java.awt.Container.removeComponentListener()

  {

    Container parent = frame.getParent();
    if (parent != null)
      {
        parent.removeComponentListener(componentListener);
      }
    componentListener = null;

    frame.getRootPane().getGlassPane().removeMouseMotionListener(glassPaneDispatcher);
    frame.getRootPane().getGlassPane().removeMouseListener(glassPaneDispatcher);
View Full Code Here

Examples of java.awt.Container.removeComponentListener()

        {
          if (evt.getNewValue() == Boolean.TRUE)
            {
              Container parent = frame.getParent();
              if (parent != null)
                parent.removeComponentListener(componentListener);
              closeFrame(frame);
            }
        }
      else if (property.equals("ancestor"))
        {
View Full Code Here

Examples of java.awt.Container.removeComponentListener()

            {
              newParent.addComponentListener(componentListener);
            }
          else if (oldParent != null)
            {
              oldParent.removeComponentListener(componentListener);
            }
        }
    }
  }
View Full Code Here

Examples of java.awt.Window.removeComponentListener()

            }
            else {
                if(overlay.isVisible()) {
                    overlay.setVisible(false);
                    Window window = (Window)SwingUtilities.getAncestorOfClass(Window.class, videoSurface.canvas());
                    window.removeComponentListener(overlayComponentAdapter);
                }
            }
        }
    }
View Full Code Here

Examples of java.awt.Window.removeComponentListener()

  @RunsInEDT
  @Override
  public void windowClosed(WindowEvent e) {
    Window w = e.getWindow();
    w.removeComponentListener(this);
    w.removeWindowListener(this);
  }

  @Override
  public void componentMoved(ComponentEvent e) {}
View Full Code Here

Examples of java.awt.Window.removeComponentListener()

        }

        public void removeNotify() {
            Toolkit.getDefaultToolkit().removeAWTEventListener(listener);
            Window w = SwingUtilities.getWindowAncestor(this);
            w.removeComponentListener(listener);
            w.removeWindowListener(listener);
            super.removeNotify();
        }

        private Rectangle dirty;
View Full Code Here

Examples of java.awt.Window.removeComponentListener()

       */
      public void hide () {
        if (bt != null) {
          isShowing = false;
          hidePopupTimer.stop();
          parent.removeComponentListener(componentEar);
          parent.removeMouseListener(mouseEar);
          owner.removeMouseListener(mouseEar);
          owner.removeFocusListener(focusEar);
          bt.setVisible(false);
          bt.dispose();
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.