src/macosx/classes/sun/lwawt/LWWindowPeer.java

Print this page




 390 
 391     @Override
 392     public void setZOrder(ComponentPeer above) {
 393         throw new RuntimeException("not implemented");
 394     }
 395 
 396     @Override
 397     public void setAlwaysOnTop(boolean value) {
 398         platformWindow.setAlwaysOnTop(value);
 399     }
 400 
 401     @Override
 402     public void updateFocusableWindowState() {
 403         cachedFocusableWindow = getTarget().isFocusableWindow();
 404         platformWindow.updateFocusableWindowState();
 405     }
 406 
 407     @Override
 408     public void setModalBlocked(Dialog blocker, boolean blocked) {
 409         synchronized (getPeerTreeLock()) {
 410             this.blocker = blocked ? (LWWindowPeer)blocker.getPeer() : null;




 411         }
 412     }
 413 
 414     @Override
 415     public void updateMinimumSize() {
 416         Dimension d = null;
 417         if (getTarget().isMinimumSizeSet()) {
 418             d = getTarget().getMinimumSize();
 419         }
 420         if (d == null) {
 421             d = new Dimension(MINIMUM_WIDTH, MINIMUM_HEIGHT);
 422         }
 423         platformWindow.setMinimumSize(d.width, d.height);
 424     }
 425 
 426     @Override
 427     public void updateIconImages() {
 428         getPlatformWindow().updateIconImages();
 429     }
 430 




 390 
 391     @Override
 392     public void setZOrder(ComponentPeer above) {
 393         throw new RuntimeException("not implemented");
 394     }
 395 
 396     @Override
 397     public void setAlwaysOnTop(boolean value) {
 398         platformWindow.setAlwaysOnTop(value);
 399     }
 400 
 401     @Override
 402     public void updateFocusableWindowState() {
 403         cachedFocusableWindow = getTarget().isFocusableWindow();
 404         platformWindow.updateFocusableWindowState();
 405     }
 406 
 407     @Override
 408     public void setModalBlocked(Dialog blocker, boolean blocked) {
 409         synchronized (getPeerTreeLock()) {
 410             if(blocked && blocker.getPeer() instanceof LWWindowPeer) {
 411                 this.blocker = (LWWindowPeer)blocker.getPeer();
 412             } else {
 413                 this.blocker = null;
 414             }
 415         }
 416     }
 417 
 418     @Override
 419     public void updateMinimumSize() {
 420         Dimension d = null;
 421         if (getTarget().isMinimumSizeSet()) {
 422             d = getTarget().getMinimumSize();
 423         }
 424         if (d == null) {
 425             d = new Dimension(MINIMUM_WIDTH, MINIMUM_HEIGHT);
 426         }
 427         platformWindow.setMinimumSize(d.width, d.height);
 428     }
 429 
 430     @Override
 431     public void updateIconImages() {
 432         getPlatformWindow().updateIconImages();
 433     }
 434