Quaqua 5.4.1 2009-07-14

ch.randelshofer.quaqua.subset
Class QuaquaLeopardFileChooserLAF

java.lang.Object
  extended by javax.swing.LookAndFeel
      extended by javax.swing.plaf.basic.BasicLookAndFeel
          extended by ch.randelshofer.quaqua.LookAndFeelProxy
              extended by ch.randelshofer.quaqua.subset.QuaquaLeopardFileChooserLAF
All Implemented Interfaces:
java.io.Serializable

public class QuaquaLeopardFileChooserLAF
extends LookAndFeelProxy

The QuaquaLeopardFileChooserLAF is an extension for Apple's Aqua Look and Feel for Java 1.5 on Mac OS X 10.5 (Leopard).

The Quaqua Look and Feel can not be used on other platforms than Mac OS X.

Important: This class is a cut down version of the Quaqua15LeopardLookAndFeel. It is for use in environments, where the size of the whole Quaqua look and feel would be too excessive.

Fixes and Enhancements

This class provides the following bug fixes end enhancements to Apple's Aqua Look and Feel:

FileChooserUI

Usage

Please use the QuaquaManager to activate this look and feel in your application. Or use the generic QuaquaLookAndFeel. Both are designed to automatically detect the appropriate Quaqua Look and Feel implementation for current Java VM.

Version:
1.0 2009-04-01 Created.
Author:
Werner Randelshofer
See Also:
QuaquaManager, QuaquaLookAndFeel, Serialized Form

Field Summary
protected static java.lang.String commonDir
           
protected static java.lang.String jaguarDir
           
protected static java.lang.String leopardDir
           
protected static javax.swing.plaf.FontUIResource SMALL_SYSTEM_FONT
          The small system font (Lucida Grande Regular 11 pt) is used for informative text in alerts.
 
Fields inherited from class ch.randelshofer.quaqua.LookAndFeelProxy
target
 
Constructor Summary
QuaquaLeopardFileChooserLAF()
          Creates a new instance.
 
Method Summary
protected  java.awt.Image createImage(java.lang.String location)
           
protected  java.awt.Font getBaseSystemFont()
          Returns the base font for which system fonts are derived.
 javax.swing.UIDefaults getDefaults()
          This method is called once by UIManager.setLookAndFeel to create the look and feel specific defaults table.
 java.lang.String getDescription()
          Return a one line description of this look and feel implementation, e.g.
 java.lang.String getName()
          Return a short string that identifies this look and feel, e.g.
protected  java.net.URL getResource(java.lang.String location)
           
protected  void initClassDefaults(javax.swing.UIDefaults table)
          Initialize the uiClassID to BasicComponentUI mapping.
protected  void initComponentDefaults(javax.swing.UIDefaults table)
           
protected  void initFontDefaults(javax.swing.UIDefaults table)
           
protected  void initGeneralDefaults(javax.swing.UIDefaults table)
           
 void initialize()
          UIManager.setLookAndFeel calls this method before the first call (and typically the only call) to getDefaults().
protected  void initResourceBundle(javax.swing.UIDefaults table)
           
protected  javax.swing.Icon[] makeIcons(java.lang.String location, int count, boolean horizontal)
           
protected  void putDefaults(javax.swing.UIDefaults table, java.lang.Object[] keyValueList)
          Puts defaults into the specified UIDefaults table.
 
Methods inherited from class ch.randelshofer.quaqua.LookAndFeelProxy
getID, getSupportsWindowDecorations, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setTarget, toString, uninitialize
 
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, initSystemColorDefaults, loadSystemColors, playSound
 
Methods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, getDisabledIcon, getDisabledSelectedIcon, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, uninstallBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

commonDir

protected static final java.lang.String commonDir
See Also:
Constant Field Values

jaguarDir

protected static final java.lang.String jaguarDir
See Also:
Constant Field Values

leopardDir

protected static final java.lang.String leopardDir
See Also:
Constant Field Values

SMALL_SYSTEM_FONT

protected static final javax.swing.plaf.FontUIResource SMALL_SYSTEM_FONT
The small system font (Lucida Grande Regular 11 pt) is used for informative text in alerts. It is also the default font for column headings in lists, for help tags, and for small controls. You can also use it to provide additional information about settings in various windows, such as the QuickTime pane in System Preferences.

Constructor Detail

QuaquaLeopardFileChooserLAF

public QuaquaLeopardFileChooserLAF()
Creates a new instance.

Method Detail

getDescription

public java.lang.String getDescription()
Return a one line description of this look and feel implementation, e.g. "The CDE/Motif Look and Feel". This string is intended for the user, e.g. in the title of a window or in a ToolTip message.

Overrides:
getDescription in class LookAndFeelProxy

getName

public java.lang.String getName()
Return a short string that identifies this look and feel, e.g. "CDE/Motif". This string should be appropriate for a menu item. Distinct look and feels should have different names, e.g. a subclass of MotifLookAndFeel that changes the way a few components are rendered should be called "CDE/Motif My Way"; something that would be useful to a user trying to select a L&F from a list of names.

Overrides:
getName in class LookAndFeelProxy

initialize

public void initialize()
UIManager.setLookAndFeel calls this method before the first call (and typically the only call) to getDefaults(). Subclasses should do any one-time setup they need here, rather than in a static initializer, because look and feel class uiDefaults may be loaded just to discover that isSupportedLookAndFeel() returns false.

Overrides:
initialize in class LookAndFeelProxy
See Also:
LookAndFeelProxy.uninitialize(), UIManager.setLookAndFeel(javax.swing.LookAndFeel)

getDefaults

public javax.swing.UIDefaults getDefaults()
This method is called once by UIManager.setLookAndFeel to create the look and feel specific defaults table. Other applications, for example an application builder, may also call this method.

Overrides:
getDefaults in class LookAndFeelProxy
See Also:
initialize(), LookAndFeelProxy.uninitialize(), UIManager.setLookAndFeel(javax.swing.LookAndFeel)

initResourceBundle

protected void initResourceBundle(javax.swing.UIDefaults table)

initClassDefaults

protected void initClassDefaults(javax.swing.UIDefaults table)
Initialize the uiClassID to BasicComponentUI mapping. The JComponent classes define their own uiClassID constants (see AbstractComponent.getUIClassID). This table must map those constants to a BasicComponentUI class of the appropriate type.

Overrides:
initClassDefaults in class javax.swing.plaf.basic.BasicLookAndFeel
See Also:
getDefaults()

initGeneralDefaults

protected void initGeneralDefaults(javax.swing.UIDefaults table)

getBaseSystemFont

protected java.awt.Font getBaseSystemFont()
Returns the base font for which system fonts are derived. This is Lucida Grande, Plain, 13.


initFontDefaults

protected void initFontDefaults(javax.swing.UIDefaults table)

initComponentDefaults

protected void initComponentDefaults(javax.swing.UIDefaults table)
Overrides:
initComponentDefaults in class javax.swing.plaf.basic.BasicLookAndFeel

getResource

protected java.net.URL getResource(java.lang.String location)

createImage

protected java.awt.Image createImage(java.lang.String location)

makeIcons

protected javax.swing.Icon[] makeIcons(java.lang.String location,
                                       int count,
                                       boolean horizontal)

putDefaults

protected void putDefaults(javax.swing.UIDefaults table,
                           java.lang.Object[] keyValueList)
Puts defaults into the specified UIDefaults table. Honors QuaquaManager.getIncludedUIs() and QuaquaManager.getExcludedUIs().

Parameters:
table -
keyValueList -

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.