Examples of removeContainerListener()


Examples of java.awt.Container.removeContainerListener()

    static void removeFocusListenerFromTree(Component comp) {
        // The exact opposite of addFocusListenerToTree.
        comp.removeFocusListener(_AWTFocusListener);
        if (comp instanceof Container) {
            Container cont = (Container)comp;
            cont.removeContainerListener(_AWTContainerListener);
            int n = cont.getComponentCount();
            for (int i = 0; i < n; i++)
                removeFocusListenerFromTree(cont.getComponent(i));
        }
    }
View Full Code Here

Examples of java.awt.Container.removeContainerListener()

   */
  private void recursiveRemove(Component c) {
    c.removeFocusListener(this);
    if (c instanceof Container) {
      Container container = (Container)c;
      container.removeContainerListener(this);
      int kidCount = container.getComponentCount();
      for (int i = 0; i < kidCount; i++) {
        recursiveRemove(container.getComponent(i));
      }
    }
View Full Code Here

Examples of java.awt.Container.removeContainerListener()

   */
  private void recursiveRemove(Component c) {
    c.removeFocusListener(this);
    if (c instanceof Container) {
      Container container = (Container)c;
      container.removeContainerListener(this);
      int kidCount = container.getComponentCount();
      for (int i = 0; i < kidCount; i++) {
        recursiveRemove(container.getComponent(i));
      }
    }
View Full Code Here

Examples of java.awt.Container.removeContainerListener()

   */
  private void recursiveRemove(Component c) {
    c.removeFocusListener(this);
    if (c instanceof Container) {
      Container container = (Container)c;
      container.removeContainerListener(this);
      int kidCount = container.getComponentCount();
      for (int i = 0; i < kidCount; i++) {
        recursiveRemove(container.getComponent(i));
      }
    }
View Full Code Here

Examples of java.awt.Container.removeContainerListener()

            c.addKeyListener(this);
        }

        if (c instanceof Container) {
            Container cnt = (Container) c;
            cnt.removeContainerListener(this);
            cnt.addContainerListener(this);
            Component[] ch = cnt.getComponents();
            for (int i = 0; i < ch.length; i++) {
                registerKeyAction(ch[i]);
            }
View Full Code Here

Examples of java.awt.Container.removeContainerListener()

            c.addKeyListener(this);
        }

        if (c instanceof Container) {
            Container cnt = (Container) c;
            cnt.removeContainerListener(this);
            cnt.addContainerListener(this);
            Component[] ch = cnt.getComponents();
            for (int i = 0; i < ch.length; i++) {
                registerKeyAction(ch[i]);
            }
View Full Code Here

Examples of java.awt.Container.removeContainerListener()

    {
        comp.removeMouseListener(_targetListener);
        comp.removeMouseMotionListener(_targetListener);
        if (comp instanceof Container) { // again, always true for JComp...
            Container cont = (Container) comp;
            cont.removeContainerListener(_childListener);
            for (int ii=0, nn=cont.getComponentCount(); ii < nn; ii++) {
                removeTargetListeners(cont.getComponent(ii));
            }
        }
    }
View Full Code Here

Examples of javax.swing.JComponent.removeContainerListener()

      JComponent child = (JComponent)e.getChild();
            // TF:12/10/07:Don't allow the registration of focus events on an array, the array will fire these for itself.
            if (child instanceof ArrayField || ArrayFieldCellHelper.getArrayField(child) != null) {
                return;
            }
          child.removeContainerListener(this);
          child.addContainerListener(this);
            ChildEventHelper.installOnAllChildren((JComponent)e.getChild(), cAFTER_FOCUS_GAIN, this);
    }
  }
View Full Code Here

Examples of javax.swing.JComponent.removeContainerListener()

      JComponent child = (JComponent)e.getChild();
            // TF:12/10/07:Don't allow the registration of focus events on an array, the array will fire these for itself.
            if (child instanceof ArrayField || ArrayFieldCellHelper.getArrayField(child) != null) {
                return;
            }
          child.removeContainerListener(this);
          child.addContainerListener(this);
            ChildEventHelper.installOnAllChildren((JComponent)e.getChild(), cAFTER_FOCUS_GAIN, this);
    }
  }
View Full Code Here

Examples of javax.swing.JComponent.removeContainerListener()

      JComponent child = (JComponent)e.getChild();
            // TF:12/10/07:Don't allow the registration of focus events on an array, the array will fire these for itself.
            if (child instanceof ArrayField || ArrayFieldCellHelper.getArrayField(child) != null) {
                return;
            }
          child.removeContainerListener(this);
          child.addContainerListener(this);
            ChildEventHelper.installOnAllChildren((JComponent)e.getChild(), cAFTER_FOCUS_GAIN, this);
    }
  }
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.