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

Print this page




 519          platformWindow.setMenuBar(mb);
 520     }
 521 
 522     @Override // FramePeer and DialogPeer
 523     public void setResizable(boolean resizable) {
 524         platformWindow.setResizable(resizable);
 525     }
 526 
 527     @Override
 528     public void setState(int state) {
 529         platformWindow.setWindowState(state);
 530     }
 531 
 532     @Override
 533     public int getState() {
 534         return windowState;
 535     }
 536 
 537     @Override
 538     public void setMaximizedBounds(Rectangle bounds) {
 539         // TODO: not implemented









 540     }
 541 
 542     @Override
 543     public void setBoundsPrivate(int x, int y, int width, int height) {
 544         setBounds(x, y, width, height, SET_BOUNDS | NO_EMBEDDED_CHECK);
 545     }
 546 
 547     @Override
 548     public Rectangle getBoundsPrivate() {
 549         throw new RuntimeException("not implemented");
 550     }
 551 
 552     // ---- DIALOG PEER METHODS ---- //
 553 
 554     @Override
 555     public void blockWindows(List<Window> windows) {
 556         //TODO: LWX will probably need some collectJavaToplevels to speed this up
 557         for (Window w : windows) {
 558             WindowPeer wp =
 559                     (WindowPeer) AWTAccessor.getComponentAccessor().getPeer(w);




 519          platformWindow.setMenuBar(mb);
 520     }
 521 
 522     @Override // FramePeer and DialogPeer
 523     public void setResizable(boolean resizable) {
 524         platformWindow.setResizable(resizable);
 525     }
 526 
 527     @Override
 528     public void setState(int state) {
 529         platformWindow.setWindowState(state);
 530     }
 531 
 532     @Override
 533     public int getState() {
 534         return windowState;
 535     }
 536 
 537     @Override
 538     public void setMaximizedBounds(Rectangle bounds) {
 539         if (bounds == null) {
 540             platformWindow.setMaximizedBounds(-1, -1, -1, -1);
 541         } else {
 542             platformWindow.setMaximizedBounds(
 543                     bounds.x == Integer.MAX_VALUE ? -1 : bounds.x,
 544                     bounds.y == Integer.MAX_VALUE ? -1 : bounds.y,
 545                     bounds.width == Integer.MAX_VALUE ? -1 : bounds.width,
 546                     bounds.height == Integer.MAX_VALUE ? -1 : bounds.height
 547             );
 548         }
 549     }
 550 
 551     @Override
 552     public void setBoundsPrivate(int x, int y, int width, int height) {
 553         setBounds(x, y, width, height, SET_BOUNDS | NO_EMBEDDED_CHECK);
 554     }
 555 
 556     @Override
 557     public Rectangle getBoundsPrivate() {
 558         throw new RuntimeException("not implemented");
 559     }
 560 
 561     // ---- DIALOG PEER METHODS ---- //
 562 
 563     @Override
 564     public void blockWindows(List<Window> windows) {
 565         //TODO: LWX will probably need some collectJavaToplevels to speed this up
 566         for (Window w : windows) {
 567             WindowPeer wp =
 568                     (WindowPeer) AWTAccessor.getComponentAccessor().getPeer(w);