Package java.awt.peer

Examples of java.awt.peer.ContainerPeer


     */
    @Deprecated
    public Insets insets() {
        ComponentPeer peer = this.peer;
  if (peer instanceof ContainerPeer) {
      ContainerPeer cpeer = (ContainerPeer)peer;
      return (Insets)cpeer.insets().clone();
  }
  return new Insets(0, 0, 0, 0);
    }
View Full Code Here


        /* Avoid grabbing lock unless really necessary. */
        if (!isValid()) {
      boolean updateCur = false;
      synchronized (getTreeLock()) {
                if (!isValid() && peer != null) {
        ContainerPeer p = null;
        if (peer instanceof ContainerPeer) {
      p = (ContainerPeer) peer;
        }
        if (p != null) {
      p.beginValidate();
        }
        validateTree();
        if (p != null) {
      p.endValidate();
      updateCur = isVisible();
        }
    }
      }
      if (updateCur) {
View Full Code Here

            // collection of component if menu is becoming shown or hidden.
            for (int i = 0; i < component.size(); i++) {
                component.get(i).addNotify();
            }
            // Update stacking order if native platform allows
            ContainerPeer cpeer = (ContainerPeer)peer;
            if (cpeer.isRestackSupported()) {
                cpeer.restack();
            }


        }
    }
View Full Code Here

        boolean updateCur = false;
        synchronized (getTreeLock()) {
            if ((!isValid() || descendUnconditionallyWhenValidating)
                    && peer != null)
            {
                ContainerPeer p = null;
                if (peer instanceof ContainerPeer) {
                    p = (ContainerPeer) peer;
                }
                if (p != null) {
                    p.beginValidate();
                }
                validateTree();
                if (p != null) {
                    p.endValidate();
                    // Avoid updating cursor if this is an internal call.
                    // See validateUnconditionally() for details.
                    if (!descendUnconditionallyWhenValidating) {
                        updateCur = isVisible();
                    }
View Full Code Here

            }


            // Update stacking order
            if (parent != null && parent.peer != null) {
                ContainerPeer parentContPeer = (ContainerPeer) parent.peer;
                // if our parent is lightweight and we are not
                // we should call restack on nearest heavyweight
                // container.
                if (parentContPeer instanceof LightweightPeer
                    && ! (peer instanceof LightweightPeer))
                {
                    Container hwParent = getNativeContainer();
                    if (hwParent != null && hwParent.peer != null) {
                        parentContPeer = (ContainerPeer) hwParent.peer;
                    }
                }
                if (parentContPeer.isRestackSupported()) {
                    parentContPeer.restack();
                }
            }
               
            if (!isAddNotifyComplete) {
                mixOnShowing();
View Full Code Here

     */
    @Deprecated
    public Insets insets() {
        ComponentPeer peer = this.peer;
        if (peer instanceof ContainerPeer) {
            ContainerPeer cpeer = (ContainerPeer)peer;
            return (Insets)cpeer.getInsets().clone();
        }
        return new Insets(0, 0, 0, 0);
    }
View Full Code Here

        boolean updateCur = false;
        synchronized (getTreeLock()) {
            if ((!isValid() || descendUnconditionallyWhenValidating)
                    && peer != null)
            {
                ContainerPeer p = null;
                if (peer instanceof ContainerPeer) {
                    p = (ContainerPeer) peer;
                }
                if (p != null) {
                    p.beginValidate();
                }
                validateTree();
                if (p != null) {
                    p.endValidate();
                    // Avoid updating cursor if this is an internal call.
                    // See validateUnconditionally() for details.
                    if (!descendUnconditionallyWhenValidating) {
                        updateCur = isVisible();
                    }
View Full Code Here

            }


            // Update stacking order
            if (parent != null && parent.peer != null) {
                ContainerPeer parentContPeer = (ContainerPeer) parent.peer;
                // if our parent is lightweight and we are not
                // we should call restack on nearest heavyweight
                // container.
                if (parentContPeer instanceof LightweightPeer
                    && ! (peer instanceof LightweightPeer))
                {
                    Container hwParent = getNativeContainer();
                    if (hwParent != null && hwParent.peer != null) {
                        parentContPeer = (ContainerPeer) hwParent.peer;
                    }
                }
                if (parentContPeer.isRestackSupported()) {
                    parentContPeer.restack();
                }
            }

            if (!isAddNotifyComplete) {
                addPropertyChangeListener("opaque", opaquePropertyChangeListener);
View Full Code Here

     */
    @Deprecated
    public Insets insets() {
        ComponentPeer peer = this.peer;
        if (peer instanceof ContainerPeer) {
            ContainerPeer cpeer = (ContainerPeer)peer;
            return (Insets)cpeer.insets().clone();
        }
        return new Insets(0, 0, 0, 0);
    }
View Full Code Here

        /* Avoid grabbing lock unless really necessary. */
        if (!valid) {
            boolean updateCur = false;
            synchronized (getTreeLock()) {
                if (!valid && peer != null) {
                    ContainerPeer p = null;
                    if (peer instanceof ContainerPeer) {
                        p = (ContainerPeer) peer;
                    }
                    if (p != null) {
                        p.beginValidate();
                    }
                    validateTree();
                    valid = true;
                    if (p != null) {
                        p.endValidate();
                        updateCur = isVisible();
                    }
                }
            }
            if (updateCur) {
View Full Code Here

TOP

Related Classes of java.awt.peer.ContainerPeer

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.