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

Print this page




 296                 styleBits = SET(styleBits, RESIZABLE, false);
 297                 styleBits = SET(styleBits, ZOOMABLE, false);
 298             }
 299         }
 300 
 301         if (target.isAlwaysOnTop()) {
 302             styleBits = SET(styleBits, ALWAYS_ON_TOP, true);
 303         }
 304 
 305         if (target.getModalExclusionType() == Dialog.ModalExclusionType.APPLICATION_EXCLUDE) {
 306             styleBits = SET(styleBits, MODAL_EXCLUDED, true);
 307         }
 308 
 309         // If the target is a dialog, popup or tooltip we want it to ignore the brushed metal look.
 310         if (isPopup) {
 311             styleBits = SET(styleBits, TEXTURED, true);
 312             // Popups in applets don't activate applet's process
 313             styleBits = SET(styleBits, NONACTIVATING, true);
 314         }
 315 




 316         if (target instanceof javax.swing.RootPaneContainer) {
 317             javax.swing.JRootPane rootpane = ((javax.swing.RootPaneContainer)target).getRootPane();
 318             Object prop = null;
 319 
 320             prop = rootpane.getClientProperty(WINDOW_BRUSH_METAL_LOOK);
 321             if (prop != null) {
 322                 styleBits = SET(styleBits, TEXTURED, Boolean.parseBoolean(prop.toString()));
 323             }
 324 
 325             if (isDialog && ((Dialog)target).getModalityType() == ModalityType.DOCUMENT_MODAL) {
 326                 prop = rootpane.getClientProperty(WINDOW_DOC_MODAL_SHEET);
 327                 if (prop != null) {
 328                     styleBits = SET(styleBits, SHEET, Boolean.parseBoolean(prop.toString()));
 329                 }
 330             }
 331 
 332             prop = rootpane.getClientProperty(WINDOW_STYLE);
 333             if (prop != null) {
 334                 if ("small".equals(prop))  {
 335                     styleBits = SET(styleBits, UTILITY, true);




 296                 styleBits = SET(styleBits, RESIZABLE, false);
 297                 styleBits = SET(styleBits, ZOOMABLE, false);
 298             }
 299         }
 300 
 301         if (target.isAlwaysOnTop()) {
 302             styleBits = SET(styleBits, ALWAYS_ON_TOP, true);
 303         }
 304 
 305         if (target.getModalExclusionType() == Dialog.ModalExclusionType.APPLICATION_EXCLUDE) {
 306             styleBits = SET(styleBits, MODAL_EXCLUDED, true);
 307         }
 308 
 309         // If the target is a dialog, popup or tooltip we want it to ignore the brushed metal look.
 310         if (isPopup) {
 311             styleBits = SET(styleBits, TEXTURED, true);
 312             // Popups in applets don't activate applet's process
 313             styleBits = SET(styleBits, NONACTIVATING, true);
 314         }
 315 
 316         if (Window.Type.UTILITY.equals(target.getType())) {
 317             styleBits = SET(styleBits, UTILITY, true);
 318         }
 319 
 320         if (target instanceof javax.swing.RootPaneContainer) {
 321             javax.swing.JRootPane rootpane = ((javax.swing.RootPaneContainer)target).getRootPane();
 322             Object prop = null;
 323 
 324             prop = rootpane.getClientProperty(WINDOW_BRUSH_METAL_LOOK);
 325             if (prop != null) {
 326                 styleBits = SET(styleBits, TEXTURED, Boolean.parseBoolean(prop.toString()));
 327             }
 328 
 329             if (isDialog && ((Dialog)target).getModalityType() == ModalityType.DOCUMENT_MODAL) {
 330                 prop = rootpane.getClientProperty(WINDOW_DOC_MODAL_SHEET);
 331                 if (prop != null) {
 332                     styleBits = SET(styleBits, SHEET, Boolean.parseBoolean(prop.toString()));
 333                 }
 334             }
 335 
 336             prop = rootpane.getClientProperty(WINDOW_STYLE);
 337             if (prop != null) {
 338                 if ("small".equals(prop))  {
 339                     styleBits = SET(styleBits, UTILITY, true);