Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua.subset
Class QuaquaPantherFileChooserLAF

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.QuaquaPantherFileChooserLAF
All Implemented Interfaces:
java.io.Serializable

public class QuaquaPantherFileChooserLAF
extends LookAndFeelProxy

The QuaquaPantherFileChooserLAF is an extension for Apple's Aqua Look and Feel for Java 1.4 on Mac OS X 10.3 (Panther).

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 QuaquaPantherLookAndFeel. 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:

ComboBoxUI

FileChooserUI

TableUI

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:
$Id: QuaquaPantherFileChooserLAF.java 405 2011-07-26 11:17:31Z wrandelshofer $
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 pantherDir
           
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
QuaquaPantherFileChooserLAF()
          Creates a new instance.
 
Method Summary
protected  java.awt.Image createImage(java.lang.String location)
           
 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 getID()
          Return a string that identifies this look and feel.
 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 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)
           
 
Methods inherited from class ch.randelshofer.quaqua.LookAndFeelProxy
getLayoutStyle, getSupportsWindowDecorations, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setTarget, 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, toString, 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

pantherDir

protected static final java.lang.String pantherDir
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

QuaquaPantherFileChooserLAF

public QuaquaPantherFileChooserLAF()
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)

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)

getID

public java.lang.String getID()
Description copied from class: LookAndFeelProxy
Return a string that identifies this look and feel. This string will be used by applications/services that want to recognize well known look and feel implementations. Presently the well known names are "Motif", "Windows", "Mac", "Metal". Note that a LookAndFeel derived from a well known superclass that doesn't make any fundamental changes to the look or feel shouldn't override this method.

Overrides:
getID in class LookAndFeelProxy

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