|
Quaqua 8.0 2011-10-02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.randelshofer.quaqua.QuaquaManager
public class QuaquaManager
The QuaquaManager provides bug fixes and enhancements for the Mac Look and Feel and for the Aqua Look and Feel on Mac OS X.
Usage for Java Applications:
UIManager.setLookAndFeel(QuaquaManager.getLookAndFeelClassName());
Usage for Java Applets:
UIManager.put("ClassLoader", getClass().getClassLoader()); UIManager.setLookAndFeel(QuaquaManager.getLookAndFeel());
System Properties for Java Applications:
You can customize the Quaqua Look and Feel using the following system properties:
Quaqua.design=jaguar
Enforces Jaguar design.Quaqua.design=panther
Enforces Panther design.Quaqua.design=tiger
Enforces Tiger design.Quaqua.design=auto
Chooses design automatically.
This is the default value.Quaqua.TabbedPane.design=jaguar
Enforces Jaguar design
for tabbed panes.Quaqua.TabbedPane.design=panther
Enforces Panther design for
tabbed panes.Quaqua.TabbedPane.design=auto
Chooses design
automatically. This is the default value.
Quaqua.FileChooser.autovalidate=false
FileChoosers do not
refresh their contents automatically. Users have to close and reopen a
file chooser to see changes in the file system.Quaqua.FileChooser.autovalidate=true
FileChoosers
refresh their contents periodically. This is the default value.Quaqua.Debug.crossPlatform=true
Enforces cross platform support.
This is a hack, useful only for testing an application with the Quaqua Look and
Feel on non-Mac OS X platforms.Quaqua.Debug.crossPlatform=false
Chooses native support.
This is the default value.System.setProperty("Quaqua.design", "panther"); System.setProperty("Quaqua.TabbedPane.design", "jaguar"); System.setProperty("Quaqua.FileChooser.autovalidate", "true");
System Properties for Java Applets:
In a secure environment, you are not allowed to change system properties.
Use QuaquaManager.setProperty
to specify (or override)
system properties that are used by Quaqua (that is, for all system
properties listed above).
Example:
QuaquaManager.setProperty("Quaqua.design", "panther"); QuaquaManager.setProperty("Quaqua.TabbedPane.design", "jaguar"); QuaquaManager.setProperty("Quaqua.FileChooser.autovalidate", "true");
Client Properties:
You can customize some of the components by specifying client properties.
Quaqua.Table.style=striped
displays rows with alternating colors.UIManager.put("ClassLoader", getClass().getClassLoader()); UIManager.setLookAndFeel(QuaquaManager.getLookAndFeel());
Field Summary | |
---|---|
static int |
CHEETAH
Mac OS X 10.0 Cheetah. |
static int |
DARWIN
Darwin. |
static int |
JAGUAR
Mac OS X 10.2 Jaguar. |
static int |
LEOPARD
Mac OS X 10.5 Leopard or Darwin 9.1.0. |
static int |
LINUX
Generic Linux. |
static int |
LION
Mac OS X 10.7 Lion. |
static int |
PANTHER
Mac OS X 10.3 Panther. |
static int |
PUMA
Mac OS X 10.1 Puma. |
static int |
SNOW_LEOPARD
Mac OS X 10.6 Snow Leopard. |
static int |
TIGER
Mac OS X 10.4 Tiger. |
static int |
UNKNOWN
Unknown. |
static int |
WINDOWS
Windows. |
Method Summary | |
---|---|
static int |
getDesign()
Returns the current design of Mac OS X. |
static java.util.Set |
getExcludedUIs()
Gets the excluded UI delegates, or null, if all Quaqua UI delegates shall be excluded from the QuaquaLookAndFeel. |
static java.util.Set |
getIncludedUIs()
Gets the included UI delegates, or null, if all Quaqua UI delegates shall be included into the QuaquaLookAndFeel. |
static javax.swing.LookAndFeel |
getLookAndFeel()
Returns a Quaqua look and feel, if workarounds for the system look and feel are available. |
static java.lang.String |
getLookAndFeelClassName()
Returns the class name of a Quaqua look and feel. |
static int |
getOS()
Returns the current operating system. |
static java.lang.String |
getProperty(java.lang.String key)
This method returns a locally specified property, if it has been set using method setProperty . |
static int[] |
getProperty(java.lang.String key,
int[] def)
This method returns a locally specified property, if it has been set using method setProperty . |
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String def)
This method returns a locally specified property, if it has been set using method setProperty . |
static java.lang.String |
getVersion()
Returns the version string of Quaqua. |
static boolean |
isNativeCodeAvailable()
Returns true, if Quaqua uses native code for some of its functionality. |
static boolean |
isOSX()
Returns true if the current operating system is known to be Mac OS X. |
static void |
main(java.lang.String[] args)
|
static void |
removeProperty(java.lang.String key)
Removes a locally defined property. |
static void |
setExcludedUIs(java.util.Set excludes)
Excludes UI delegates with the specified names. |
static void |
setIncludedUIs(java.util.Set includes)
Include only UI delegates with the specified names. |
static java.lang.String |
setProperty(java.lang.String key,
java.lang.String value)
Locally defines a property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CHEETAH
public static final int PUMA
public static final int JAGUAR
public static final int PANTHER
public static final int TIGER
public static final int LEOPARD
public static final int SNOW_LEOPARD
public static final int LION
public static final int LINUX
public static final int DARWIN
public static final int WINDOWS
public static final int UNKNOWN
Method Detail |
---|
public static int getOS()
public static boolean isOSX()
public static int getDesign()
public static java.lang.String getLookAndFeelClassName()
public static javax.swing.LookAndFeel getLookAndFeel()
public static java.lang.String getProperty(java.lang.String key)
setProperty
.
If no local property has been found, a system property using
method java.lang.System.getProperty(String,String
is
returned.This method is used to specify properties for Quaqua, when, due to security reasons, system properties can not be used, e.g. in a secure Applet environment.
setProperty(java.lang.String, java.lang.String)
public static java.lang.String getProperty(java.lang.String key, java.lang.String def)
setProperty
.
If no local property has been found, a system property using
method java.lang.System.getProperty(String,String
is
returned.This method is used to specify properties for Quaqua, when, due to security reasons, system properties can not be used, e.g. in a secure Applet environment.
setProperty(java.lang.String, java.lang.String)
public static int[] getProperty(java.lang.String key, int[] def)
setProperty
.
If no local property has been found, a system property using
method java.lang.System.getProperty(String,String
is
returned.This method is used to specify properties for Quaqua, when, due to security reasons, system properties can not be used, e.g. in a secure Applet environment.
setProperty(java.lang.String, java.lang.String)
public static java.lang.String setProperty(java.lang.String key, java.lang.String value)
Use method clearProperty
to clear a local property.
This method is used to specify properties for Quaqua, when, due to security reasons, system properties can not be used, e.g. in a secure Applet environment.
getProperty(java.lang.String)
public static void removeProperty(java.lang.String key)
This method is used to specify properties for Quaqua, when, due to security reasons, system properties can not be used, e.g. in a secure Applet environment.
setProperty(java.lang.String, java.lang.String)
public static java.lang.String getVersion()
public static void main(java.lang.String[] args)
public static boolean isNativeCodeAvailable()
public static void setIncludedUIs(java.util.Set includes)
Usage:
HashSet includes = new HashSet(); includes.add("Button"); QuaquaManager.setIncludeUIs(includes);
includes
- Setpublic static void setExcludedUIs(java.util.Set excludes)
Usage:
HashSet excludes = new HashSet(); excludes.add("TextField"); QuaquaManager.setExcludeUIs(excludes);
excludes
- Setpublic static java.util.Set getIncludedUIs()
public static java.util.Set getExcludedUIs()
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |