Package java.awt.peer

Examples of java.awt.peer.WindowPeer


     * @since     1.6
     */
    public synchronized void setIconImages(java.util.List<? extends Image> icons) {
        this.icons = (icons == null) ? new ArrayList<Image>() :
            new ArrayList<Image>(icons);
        WindowPeer peer = (WindowPeer)this.peer;
        if (peer != null) {
            peer.updateIconImages();
        }
        // Always send a property change event
        firePropertyChange("iconImage", null, null);
    }
View Full Code Here


    // This functionality is implemented in a final package-private method
    // to insure that it cannot be overridden by client subclasses.
    final void toFront_NoClientCode() {
        if (visible) {
      WindowPeer peer = (WindowPeer)this.peer;
      if (peer != null) {
          peer.toFront();
      }
            if (isModalBlocked()) {
                modalBlocker.toFront_NoClientCode();
            }
  }
View Full Code Here

                setAlwaysOnTop(false);
            }catch(SecurityException e) {
            }
        }
        if (visible) {
      WindowPeer peer = (WindowPeer)this.peer;
      if (peer != null) {
          peer.toBack();
      }
  }
    }
View Full Code Here

        return modalBlocker != null;
    }

    void setModalBlocked(Dialog blocker, boolean blocked) {
        this.modalBlocker = blocked ? blocker : null;
        WindowPeer peer = (WindowPeer)this.peer;
        if (peer != null) {
            peer.setModalBlocked(blocker, blocked);
        }
    }
View Full Code Here

            oldAlwaysOnTop = this.alwaysOnTop;
            this.alwaysOnTop = alwaysOnTop;
        }
        if (oldAlwaysOnTop != alwaysOnTop ) {
            if (isAlwaysOnTopSupported()) {
                WindowPeer peer = (WindowPeer)this.peer;
                synchronized(getTreeLock()) {
                    if (peer != null) {
                        peer.setAlwaysOnTop(alwaysOnTop);
                    }
                }
            }
            firePropertyChange("alwaysOnTop", oldAlwaysOnTop, alwaysOnTop);
        }       
View Full Code Here

  boolean oldFocusableWindowState;
  synchronized (this) {
      oldFocusableWindowState = this.focusableWindowState;
      this.focusableWindowState = focusableWindowState;
 
        WindowPeer peer = (WindowPeer)this.peer;      
        if (peer != null) {
            peer.updateFocusableWindowState();
        }
        firePropertyChange("focusableWindowState", oldFocusableWindowState,
                           focusableWindowState);
  if (oldFocusableWindowState && !focusableWindowState && isFocused()) {
            for (Window owner = getOwner();
View Full Code Here

    private transient boolean opaque = true;

    private void applyOpacity() {
        checkTreeLock();

        WindowPeer peer = (WindowPeer)getPeer();
        if (peer != null) {
            peer.setOpacity(opacity);
        }
    }
View Full Code Here

    }

    private void applyShape() {
        checkTreeLock();

        WindowPeer peer = (WindowPeer)getPeer();
        if (peer != null) {
            peer.applyShape(shape != null ?
                    Region.getInstance(shape, null) :
                    null);
        }
    }
View Full Code Here

    private void applyOpaque() {
        checkTreeLock();

        setLayersOpaque(this, opaque);

        WindowPeer peer = (WindowPeer)getPeer();
        if (peer != null) {
            peer.setOpaque(opaque);
        }
    }
View Full Code Here

    }

    private void updateWindow(BufferedImage backBuffer) {
        checkTreeLock();

        WindowPeer peer = (WindowPeer)getPeer();
        if (peer != null) {
            peer.updateWindow(backBuffer);
        }
    }
View Full Code Here

TOP

Related Classes of java.awt.peer.WindowPeer

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.