< prev index next >

src/java.desktop/macosx/classes/com/apple/laf/AquaLookAndFeel.java

Print this page




 257             while (propertyKeys.hasMoreElements()) {
 258                 final String key = propertyKeys.nextElement();
 259                 table.put(key, aquaProperties.getString(key));
 260             }
 261         } catch (final Exception e) {
 262         }
 263     }
 264 
 265     /**
 266      * This is the last step in the getDefaults routine usually called from our superclass
 267      */
 268     protected void initComponentDefaults(final UIDefaults table) {
 269         initResourceBundle(table);
 270 
 271         final InsetsUIResource zeroInsets = new InsetsUIResource(0, 0, 0, 0);
 272         final InsetsUIResource menuItemMargin = zeroInsets;
 273 
 274         // <rdar://problem/5189013> Entire Java application window refreshes when moving off Shortcut menu item
 275         final Boolean useOpaqueComponents = Boolean.TRUE;
 276 
 277         final Boolean buttonShouldBeOpaque = AquaUtils.shouldUseOpaqueButtons() ? Boolean.TRUE : Boolean.FALSE;
 278 
 279         // *** List value objects
 280         final Object listCellRendererActiveValue = new UIDefaults.ActiveValue(){
 281             public Object createValue(UIDefaults defaultsTable) {
 282                 return new DefaultListCellRenderer.UIResource();
 283             }
 284         };
 285 
 286         // SJA - I'm basing this on what is in the MetalLookAndFeel class, but
 287         // without being based on BasicLookAndFeel. We want more flexibility.
 288         // The key to doing this well is to use Lazy initializing classes as
 289         // much as possible.
 290 
 291         // Here I want to go to native and get all the values we'd need for colors etc.
 292         final Border toolTipBorder = new BorderUIResource.EmptyBorderUIResource(2, 0, 2, 0);
 293         final ColorUIResource toolTipBackground = new ColorUIResource(255, 255, (int)(255.0 * 0.80));
 294         final ColorUIResource black = new ColorUIResource(Color.black);
 295         final ColorUIResource white = new ColorUIResource(Color.white);
 296         final ColorUIResource smokyGlass = new ColorUIResource(new Color(0, 0, 0, 152));
 297         final ColorUIResource dockIconRim = new ColorUIResource(new Color(192, 192, 192, 192));




 257             while (propertyKeys.hasMoreElements()) {
 258                 final String key = propertyKeys.nextElement();
 259                 table.put(key, aquaProperties.getString(key));
 260             }
 261         } catch (final Exception e) {
 262         }
 263     }
 264 
 265     /**
 266      * This is the last step in the getDefaults routine usually called from our superclass
 267      */
 268     protected void initComponentDefaults(final UIDefaults table) {
 269         initResourceBundle(table);
 270 
 271         final InsetsUIResource zeroInsets = new InsetsUIResource(0, 0, 0, 0);
 272         final InsetsUIResource menuItemMargin = zeroInsets;
 273 
 274         // <rdar://problem/5189013> Entire Java application window refreshes when moving off Shortcut menu item
 275         final Boolean useOpaqueComponents = Boolean.TRUE;
 276 
 277         final Boolean buttonShouldBeOpaque = Boolean.FALSE;
 278 
 279         // *** List value objects
 280         final Object listCellRendererActiveValue = new UIDefaults.ActiveValue(){
 281             public Object createValue(UIDefaults defaultsTable) {
 282                 return new DefaultListCellRenderer.UIResource();
 283             }
 284         };
 285 
 286         // SJA - I'm basing this on what is in the MetalLookAndFeel class, but
 287         // without being based on BasicLookAndFeel. We want more flexibility.
 288         // The key to doing this well is to use Lazy initializing classes as
 289         // much as possible.
 290 
 291         // Here I want to go to native and get all the values we'd need for colors etc.
 292         final Border toolTipBorder = new BorderUIResource.EmptyBorderUIResource(2, 0, 2, 0);
 293         final ColorUIResource toolTipBackground = new ColorUIResource(255, 255, (int)(255.0 * 0.80));
 294         final ColorUIResource black = new ColorUIResource(Color.black);
 295         final ColorUIResource white = new ColorUIResource(Color.white);
 296         final ColorUIResource smokyGlass = new ColorUIResource(new Color(0, 0, 0, 152));
 297         final ColorUIResource dockIconRim = new ColorUIResource(new Color(192, 192, 192, 192));


< prev index next >