public class LookAndFeelFactory extends java.lang.Object implements ProductNames
UIManager.setLookAndFeel(WindowsLookAndFeel.class.getName()); // you need to catch the
exceptions
on this call.
LookAndFeelFactory.installJideExtension();
LookAndFeelFactory.installJideExtension() method will check what kind of L&F you set and what operating system you
are on and decide which style of JIDE extension it will install. Here is the rule. VSNET_STYLE
, ECLIPSE_STYLE
, ECLIPSE3X_STYLE
,
OFFICE2003_STYLE
, or XERTO_STYLE
. In the other word, you will make the choice of style instead of
letting LookAndFeelFactory to decide one for you. Please note, there is no constant defined for AQUA_STYLE. The only
way to use it is when you are using Aqua L&F or Quaqua L&F and you call installJideExtension() method, the one
without parameter.
LookAndFeelFactory supports a number of known L&Fs. You can see those L&Fs as constants whose names are something
like "_LNF" such as WINDOWS_LNF.
If you are using a 3rd party L&F we are not officially supporting, we might need to customize it. Here are two
classes you can use. The first one is LookAndFeelFactory.UIDefaultsCustomizer
. You can add a number of customizers to
LookAndFeelFactory. After LookAndFeelFactory installJideExtension method is called, we will call customize() method
on each UIDefaultsCustomizer to add additional UIDefaults you specified. You can use UIDefaultsCustomizer to do
things like small tweaks to UIDefaults without the hassle of creating a new style.
Most likely, we will not need to use LookAndFeelFactory.UIDefaultsInitializer
if you are use L&Fs such as WindowsLookAndFeel,
any L&Fs based on MetalLookAndFeel, or AquaLookAndFeel etc. The only exception is Synth L&F and any L&Fs based on it.
The reason is we calculate all colors we will use in JIDE components from existing well-known UIDefaults. For
example, we will use UIManagerLookup.getColor("activeCaption") to calculate a color that we can use in dockable
frame's title pane. We will use UIManagerLookup.getColor("control") to calculate a color that we can use as
background of JIDE component. Most L&Fs will fill those UIDefaults. However in Synth L&F, those UIDefaults may or may
not have a valid value. You will end up with NPE later in the code when you call installJideExtension. In this case,
you can add those extra UIDefaults in UIDefaultsInitializer. We will call it before installJideExtension is called so
that those UIDefaults are there ready for us to use. This is how added support to GTK L&F and Synthetica L&F.
installJideExtension()
method will only add the additional UIDefaults to current ClassLoader. If you have
several class loaders in your system, you probably should tell the UIManager to use the class loader that called
installJideExtension
. Otherwise, you might some unexpected errors. Here is how to specify the class
loaders.
UIManager.put("ClassLoader", currentClass.getClassLoader()); // currentClass is the class where
the code is.
LookAndFeelFactory.installDefaultLookAndFeelAndExtension(); // or installJideExtension()
Modifier and Type | Class and Description |
---|---|
static class |
LookAndFeelFactory.GTKInitializer |
static class |
LookAndFeelFactory.NimbusInitializer |
static class |
LookAndFeelFactory.SyntheticaCustomizer |
static class |
LookAndFeelFactory.SyntheticaInitializer |
static interface |
LookAndFeelFactory.UIDefaultsCustomizer
An interface to make the customization of UIDefaults easier.
|
static interface |
LookAndFeelFactory.UIDefaultsInitializer
An interface to make the initialization of UIDefaults easier.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
A03_LNF
Class name of A03 L&F.
|
static java.lang.String |
ALLOY_LNF
Class name of Quaqua Alloy L&F.
|
static java.lang.String |
AQUA_LNF
Class name of Aqua L&F provided in Apple Mac OS X JDK.
|
static java.lang.String |
AQUA_LNF_6
Class name of Aqua L&F provided in Apple Mac OS X JDK.
|
static int |
ECLIPSE_STYLE
A style that you can use with
installJideExtension(int) method. |
static int |
ECLIPSE3X_STYLE
A style that you can use with
installJideExtension(int) method. |
static java.lang.String |
GTK_LNF
Class name of GTK L&F provided by Sun JDK.
|
static java.lang.String |
JIDE_EXTENSION_INSTALLLED
If installJideExtension is called, it will put an entry on UIDefaults table.
|
static java.lang.String |
JIDE_STYLE_INSTALLED
If installJideExtension is called, a JIDE style will be installed on UIDefaults table.
|
static java.lang.String |
LAF_INSTALLED |
static java.lang.String |
LAF_NOT_INSTALLED |
static java.lang.String |
METAL_LNF
Class name of Metal L&F provided in Sun JDK.
|
static java.lang.String |
NIMBUS_LNF_NAME
The name of Nimbus L&F.
|
static int |
OFFICE2003_STYLE
A style that you can use with
installJideExtension(int) method. |
static int |
OFFICE2007_STYLE
A style that you can use with
installJideExtension(int) method. |
static java.lang.String |
PGS_LNF
Class name of Pgs L&F.
|
static java.lang.String |
PLASTIC3D_LNF
Class name of Plastic3D L&F before JGoodies Look 1.3 release.
|
static java.lang.String |
PLASTIC3D_LNF_1_3
Class name of Plastic3D L&F after JGoodies Look 1.3 release.
|
static java.lang.String |
PLASTICXP_LNF
Class name of PlasticXP L&F.
|
static java.lang.String |
QUAQUA_LNF
Class name of Quaqua L&F.
|
static java.lang.String |
SYNTHETICA_LNF
Class name of Synthetica L&F.
|
static java.lang.String |
TONIC_LNF
Class name of Tonic L&F.
|
static int |
VSNET_STYLE
A style that you can use with
installJideExtension(int) method. |
static int |
VSNET_STYLE_WITHOUT_MENU
A style that you can use with
installJideExtension(int) method. |
static java.lang.String |
WINDOWS_LNF
Class name of Windows L&F provided in Sun JDK.
|
static int |
XERTO_STYLE
A style that you can use with
installJideExtension(int) method. |
static int |
XERTO_STYLE_WITHOUT_MENU
A style that you can use with
installJideExtension(int) method. |
COMPONENT_PRODUCTS, PRODUCT_ACTION, PRODUCT_ALL, PRODUCT_CHARTS, PRODUCT_CODE_EDITOR, PRODUCT_COMMON, PRODUCT_COMPONENTS, PRODUCT_DASHBOARD, PRODUCT_DATAGRIDS, PRODUCT_DIALOGS, PRODUCT_DOCK, PRODUCT_ENTERPRISE_SUITE, PRODUCT_FEEDREADER, PRODUCT_GRIDS, PRODUCT_JDAF, PRODUCT_NAME_ACTION, PRODUCT_NAME_CHARTS, PRODUCT_NAME_CODE_EDITOR, PRODUCT_NAME_COMMON, PRODUCT_NAME_COMPONENTS, PRODUCT_NAME_DASHBOARD, PRODUCT_NAME_DATAGRIDS, PRODUCT_NAME_DIALOGS, PRODUCT_NAME_DOCK, PRODUCT_NAME_FEEDREADER, PRODUCT_NAME_GRIDS, PRODUCT_NAME_JDAF, PRODUCT_NAME_PIVOT, PRODUCT_NAME_SHORTCUT, PRODUCT_PIVOT, PRODUCT_PROFESSIONAL_SUITE, PRODUCT_SHORTCUT, PRODUCT_SOLUTION, PRODUCT_ULTIMATE_SUITE, SOLUTION_PRODUCTS
Modifier | Constructor and Description |
---|---|
protected |
LookAndFeelFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
addUIDefaultsCustomizer(LookAndFeelFactory.UIDefaultsCustomizer uiDefaultsCustomizer)
Adds your own UIDefaults customizer.
|
static void |
addUIDefaultsInitializer(LookAndFeelFactory.UIDefaultsInitializer uiDefaultsInitializer)
Adds your own UIDefaults initializer.
|
static int |
getDefaultStyle()
Gets the default style.
|
static javax.swing.LookAndFeel |
getLookAndFeel()
Gets current L&F.
|
static int |
getProductsUsed() |
static int |
getStyle()
Gets current style.
|
static LookAndFeelFactory.UIDefaultsCustomizer[] |
getUIDefaultsCustomizers()
Gets all UIDefaults customizers.
|
static LookAndFeelFactory.UIDefaultsInitializer[] |
getUIDefaultsInitializers()
Gets all UIDefaults initializers.
|
static java.lang.ClassLoader |
getUIManagerClassLoader() |
static void |
installDefaultLookAndFeel()
Install the default L&F.
|
static void |
installDefaultLookAndFeelAndExtension()
Install the default L&F.
|
static void |
installJideExtension()
Adds additional UIDefaults JIDE needed to UIDefault table.
|
static void |
installJideExtension(int style)
Add additional UIDefaults JIDE needed to UIDefaults table.
|
static void |
installJideExtension(javax.swing.UIDefaults uiDefaults,
javax.swing.LookAndFeel lnf,
int style)
Installs the UIDefault needed by JIDE component to the uiDefaults table passed in.
|
static boolean |
isA03LnfInstalled()
Returns whether A03 L&F is in classpath
|
static boolean |
isAlloyLnfInstalled()
Returns whether alloy L&F is in classpath
|
static boolean |
isAquaLnfInstalled()
Returns whether or not the Aqua L&F is in classpath.
|
static boolean |
isCurrentLnfDecorated()
Checks if the current L&F uses decorated frames.
|
static boolean |
isGTKLnfInstalled()
Returns whether GTK L&F is in classpath
|
static boolean |
isJideExtensionInstalled()
Checks if JIDE extension is installed.
|
static boolean |
isLnfInstalled(java.lang.String lnfName)
Returns whether or not the L&F is in classpath.
|
static boolean |
isLnfInUse(java.lang.String lnfName)
Checks if the L&F is the L&F or a subclass of the L&F.
|
static boolean |
isNimbusLnfInstalled()
Returns whether or not the Nimbus L&F is in classpath.
|
static boolean |
isPgsLnfInstalled()
Returns whether or not the Pgs L&F is in classpath.
|
static boolean |
isPlastic3D13LnfInstalled()
Returns whether Plastic3D L&F is in classpath
|
static boolean |
isPlastic3DLnfInstalled()
Returns whether Plastic3D L&F is in classpath
|
static boolean |
isPlasticXPLnfInstalled()
Returns whether PlasticXP L&F is in classpath
|
static boolean |
isQuaquaLnfInstalled()
Returns whether or not the Quaqua L&F is in classpath.
|
static boolean |
isSyntheticaLnfInstalled()
Returns whether or not the Synthetica L&F is in classpath.
|
static boolean |
isTonicLnfInstalled()
Returns whether Tonic L&F is in classpath
|
static void |
main(java.lang.String[] args) |
static void |
overwriteDefaults(javax.swing.UIDefaults table,
java.lang.Object[] keyValueArray)
Puts a list of UIDefault to the UIDefaults table.
|
static void |
putDefaults(javax.swing.UIDefaults table,
java.lang.Object[] keyValueArray)
Puts a list of UIDefault to the UIDefaults table.
|
static void |
removeUIDefaultsCustomizer(LookAndFeelFactory.UIDefaultsCustomizer uiDefaultsCustomizer)
Removes an existing UIDefaults customizer you added before.
|
static void |
removeUIDefaultsInitializer(LookAndFeelFactory.UIDefaultsInitializer uiDefaultsInitializer)
Removes an existing UIDefaults initializer you added before.
|
static void |
setDefaultStyle(int defaultStyle)
Sets the default style.
|
static void |
setLnfInstalled(java.lang.String lnfName,
boolean installed)
Tells the LookAndFeelFactory whether a L&F is installed.
|
static void |
setProductsUsed(int productsUsed)
Sets the products you will use.
|
static void |
verifyDefaults(javax.swing.UIDefaults table,
java.lang.Object[] keyValueList) |
public static final java.lang.String WINDOWS_LNF
public static final java.lang.String METAL_LNF
public static final java.lang.String AQUA_LNF
public static final java.lang.String AQUA_LNF_6
public static final java.lang.String QUAQUA_LNF
public static final java.lang.String ALLOY_LNF
public static final java.lang.String SYNTHETICA_LNF
public static final java.lang.String PLASTIC3D_LNF
public static final java.lang.String PLASTIC3D_LNF_1_3
public static final java.lang.String PLASTICXP_LNF
public static final java.lang.String TONIC_LNF
public static final java.lang.String A03_LNF
public static final java.lang.String PGS_LNF
public static final java.lang.String GTK_LNF
public static final java.lang.String NIMBUS_LNF_NAME
public static final int VSNET_STYLE_WITHOUT_MENU
installJideExtension(int)
method. This style is the same as VSNET_STYLE
except it doesn't have menu related UIDefaults. You can only use this style if you didn't use any component from
JIDE Action Framework.
VSNET_STYLE
,
Constant Field Valuespublic static final int VSNET_STYLE
installJideExtension(int)
method. This style mimics the visual style of
Microsoft Visual Studio .NET for the toolbars, menus and dockable windows.
Vsnet style is a very simple style with no gradient. Although it works on almost all L&Fs in any operating
systems, it looks the best on Windows 2000 or 98, or on Windows XP when XP theme is not on. If XP theme is on, we
suggest you use Office2003 style or Xerto style. Since the style is so simple, it works with a lot of the 3rd
party L&F such as Tonic, Pgs, Alloy etc without causing too much noise. That's why this is also the default style
for any L&Fs we don't recognize when you call installJideExtension()
, the one with out style parameter.
If you would like another style to be used as the default style, you can call setDefaultStyle(int)
method.
Here is the code to set to Windows L&F with Vsnet style extension.
UIManager.setLookAndFeel(WindowsLookAndFeel.class.getName()); // you need to catch the
exceptions on this call.
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.VSNET_STYLE);
There is a special system property "shading theme" you can use. If you turn it on using the code below, you will
see a gradient on dockable frame's title pane and rounded corner and gradient on the tabs of JideTabbedPane. So
if the L&F you are using uses gradient, you can set this property to true to match with your L&F. For example, if
you use Plastic3D L&F, turning this property on will look better.
System.setProperty("shadingtheme", "true");
public static final int ECLIPSE_STYLE
installJideExtension(int)
method. This style mimics the visual style of
Eclipse 2.x for the toolbars, menus and dockable windows.
Eclipse style works for almost all L&Fs and on any operating systems, although it looks the best on Windows. For
any other operating systems we suggest you to use XERTO_STYLE or VSNET_STYLE.
Here is the code to set to any L&F with Eclipse style extension.
UIManager.setLookAndFeel(AnyLookAndFeel.class.getName()); // you need to catch the
exceptions
on this call.
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.ECLIPSE_STYLE);
public static final int OFFICE2003_STYLE
installJideExtension(int)
method. This style mimics the visual style of
Microsoft Office2003 for the toolbars, menus and dockable windows.
Office2003 style looks great on Windows XP when Windows or Windows XP L&F from Sun JDK is used. It replicated the
exact same style as Microsoft Office 2003, to give your end user a familiar visual style.
Here is the code to set to Windows L&F with Office2003 style extension.
UIManager.setLookAndFeel(WindowsLookAndFeel.class.getName()); // you need to catch the
exceptions on this call.
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.OFFICE2003_STYLE);
It works either on any other Windows such asWindows 2000, Windows 98 etc. If you are on Windows XP, Office2003
style will change theme based on the theme setting in Windows Display Property. But if you are not on XP,
Office2003 style will use the default gray theme only. You can force to change it using Office2003Painter.setColorName(String)
method, but it won't look good as other non-JIDE components won't have
the matching theme.
Office2003 style doesn't work on any operating systems other than Windows mainly because the design of Office2003
style is so centric to Windows that it doesn't look good on other operating systems.public static final int XERTO_STYLE
installJideExtension(int)
method. This style is created by Xerto
(http://www.xerto.com) which is used in their Imagery product.
Xerto style looks great on Windows XP when Windows XP L&F from Sun JDK is used.
Here is the code to set to Windows L&F with Xerto style extension.
UIManager.setLookAndFeel(WindowsLookAndFeel.class.getName()); // you need to catch the
exceptions on this call.
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.XERTO_STYLE);
Although it looks the best on Windows, Xerto style also supports Linux or Solaris if you use any L&Fs based on
Metal L&F or Synth L&F. For example, we recommend you to use Xerto style as default if you use SyntheticaL&F, a
L&F based on Synth. To use it, you basically replace WindowsLookAndFeel to the L&F you want to use in
setLookAndFeel line above.public static final int XERTO_STYLE_WITHOUT_MENU
installJideExtension(int)
method. This style is the same as XERTO_STYLE
except it doesn't have menu related UIDefaults. You can only use this style if you didn't use any component from
JIDE Action Framework. Please note, we only use menu extension for Xerto style when the underlying L&F is Windows
L&F. If you are using L&F such as Metal or other 3rd party L&F based on Metal, XERTO_STYLE_WITHOUT_MENU will be
used even you use XERTO_STYLE when calling to installJideExtension().
XERTO_STYLE
,
Constant Field Valuespublic static final int ECLIPSE3X_STYLE
installJideExtension(int)
method. This style mimics the visual style of
Eclipse 3.x for the toolbars, menus and dockable windows.
Eclipse 3x style works for almost all L&Fs and on any operating systems, although it looks the best on Windows.
For any other OS's we suggest you to use XERTO_STYLE or VSNET_STYLE.
UIManager.setLookAndFeel(AnyLookAndFeel.class.getName()); // you need to catch the
exceptions
on this call.
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.ECLIPSE3X_STYLE);
public static final int OFFICE2007_STYLE
installJideExtension(int)
method. This style mimics the visual style of
Microsoft Office2007 for the toolbars, menus and dockable windows.
Office2007 style looks great on Windows Vista when Windows L&F from Sun JDK is used. It replicated the exact same
style as Microsoft Office 2007, to give your end user a familiar visual style.
Here is the code to set to Windows L&F with Office2007 style extension.
UIManager.setLookAndFeel(WindowsLookAndFeel.class.getName()); // you need to catch the
exceptions on this call.
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.OFFICE2007_STYLE);
Office2007 style doesn't work on any operating systems other than Windows mainly because the design of Office2003
style is so centric to Windows that it doesn't look good on other operating systems.
Because we use some painting code that is only available in JDK6, Office 2007 style only runs if you are using
JDK6 and above.public static final java.lang.String JIDE_EXTENSION_INSTALLLED
isJideExtensionInstalled()
to check the value instead of using UIManagerLookup.getBoolean(JIDE_EXTENSION_INSTALLLED).public static final java.lang.String JIDE_STYLE_INSTALLED
public static final java.lang.String LAF_INSTALLED
public static final java.lang.String LAF_NOT_INSTALLED
public static int getDefaultStyle()
public static void setDefaultStyle(int defaultStyle)
installJideExtension()
will use
it as the default style.defaultStyle
- the default style.public static void installJideExtension()
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch (ClassNotFoundException e) {
e.printStackTrace();
}
catch (InstantiationException e) {
e.printStackTrace();
}
catch (IllegalAccessException e) {
e.printStackTrace();
}
catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
// to additional UIDefault for JIDE components
LookAndFeelFactory.installJideExtension(); // use default style VSNET_STYLE. You can change
to a different style
using setDefaultStyle(int style) and then call this method. Or simply call
installJideExtension(style).
// call updateComponentTreeUI
frame.getDockableBarManager().updateComponentTreeUI();
frame.getDockingManager().updateComponentTreeUI();
public static void installJideExtension(int style)
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch (ClassNotFoundException e) {
e.printStackTrace();
}
catch (InstantiationException e) {
e.printStackTrace();
}
catch (IllegalAccessException e) {
e.printStackTrace();
}
catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
// to add additional UIDefault for JIDE components
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.OFFICE2003_STYLE);
// call updateComponentTreeUI
frame.getDockableBarManager().updateComponentTreeUI();
frame.getDockingManager().updateComponentTreeUI();
style
- the style of the extension.public static boolean isJideExtensionInstalled()
installJideExtension()
method before, UIManager.setLookAndFeel()
method make isJideExtensionInstalled returning false.public static void installJideExtension(javax.swing.UIDefaults uiDefaults, javax.swing.LookAndFeel lnf, int style)
uiDefaults
- the UIDefault tables where JIDE UIDefaults will be installed.lnf
- the LookAndFeel. This may have an effect on which set of JIDE UIDefaults we will install.style
- the style of the JIDE UIDefaults.public static boolean isLnfInstalled(java.lang.String lnfName)
lnfName
- the L&F name.public static java.lang.ClassLoader getUIManagerClassLoader()
public static boolean isLnfInUse(java.lang.String lnfName)
lnfName
- the L&F name.public static void setLnfInstalled(java.lang.String lnfName, boolean installed)
isLnfInstalled(String)
is called to determine if the class is in the class path. However you can call this
method to tell if the L&F is available without us instantiating the class.lnfName
- the L&F name.installed
- true or false.public static boolean isAquaLnfInstalled()
public static boolean isQuaquaLnfInstalled()
public static boolean isAlloyLnfInstalled()
public static boolean isGTKLnfInstalled()
public static boolean isPlastic3DLnfInstalled()
public static boolean isPlastic3D13LnfInstalled()
public static boolean isPlasticXPLnfInstalled()
public static boolean isTonicLnfInstalled()
public static boolean isA03LnfInstalled()
public static boolean isPgsLnfInstalled()
public static boolean isSyntheticaLnfInstalled()
public static boolean isNimbusLnfInstalled()
public static void installDefaultLookAndFeelAndExtension()
public static void installDefaultLookAndFeel()
public static javax.swing.LookAndFeel getLookAndFeel()
public static int getStyle()
public static LookAndFeelFactory.UIDefaultsCustomizer[] getUIDefaultsCustomizers()
public static void addUIDefaultsCustomizer(LookAndFeelFactory.UIDefaultsCustomizer uiDefaultsCustomizer)
For example, we use "JideButton.font" as the UIDefault for the JideButton font. If you want
to use another font, you can do
LookAndFeelFactory.addUIDefaultsCustomizer(new LookAndFeelFactory.UIDefaultsCustomizer() {
public void customize(UIDefaults defaults) {
defaults.put("JideButton.font", whateverFont);
}
});
LookAndFeelFactory.installJideExtension();
uiDefaultsCustomizer
- the UIDefaultsCustomizerpublic static void removeUIDefaultsCustomizer(LookAndFeelFactory.UIDefaultsCustomizer uiDefaultsCustomizer)
uiDefaultsCustomizer
- the UIDefaultsCustomizerpublic static LookAndFeelFactory.UIDefaultsInitializer[] getUIDefaultsInitializers()
public static void addUIDefaultsInitializer(LookAndFeelFactory.UIDefaultsInitializer uiDefaultsInitializer)
LookAndFeelFactory.addUIDefaultsInitializer(new LookAndFeelFactory.UIDefaultsInitializer() {
public void initialize(UIDefaults defaults) {
defaults.put("activeCaption", whateverColor);
}
});
UIManager.setLookAndFeel(...); // set whatever L&F
LookAndFeelFactory.installJideExtension(); // install the UIDefaults needed by the JIDE
components
uiDefaultsInitializer
- the UIDefaultsInitializer.public static void removeUIDefaultsInitializer(LookAndFeelFactory.UIDefaultsInitializer uiDefaultsInitializer)
uiDefaultsInitializer
- the UIDefaultsInitializerpublic static void verifyDefaults(javax.swing.UIDefaults table, java.lang.Object[] keyValueList)
public static void putDefaults(javax.swing.UIDefaults table, java.lang.Object[] keyValueArray)
putDefaults(javax.swing.UIDefaults,Object[])
method. You should use this method in LookAndFeelFactory.UIDefaultsInitializer
so that it fills in the UIDefault value only
when it is missing.table
- the ui defaults tablekeyValueArray
- the key value array. It is in the format of a key followed by a value.public static void overwriteDefaults(javax.swing.UIDefaults table, java.lang.Object[] keyValueArray)
putDefaults(javax.swing.UIDefaults,Object[])
method. You should use this method in LookAndFeelFactory.UIDefaultsCustomizer
because you always want to override the existing value using the new value.table
- the ui defaults tablekeyValueArray
- the key value array. It is in the format of a key followed by a value.public static int getProductsUsed()
public static void setProductsUsed(int productsUsed)
setProductUsed(ProductNames.PRODUCT_DOCK | ProductNames.PRODUCT_GRIDS)
so that we don't initialize
UIDefaults needed by any other products. If you use this class as part of JIDE Common Layer open source project,
you should call setProductUsed(ProductNames.PRODUCT_COMMON)
. If you want to use all JIDE products,
you should call setProductUsed(ProductNames.PRODUCT_ALL)
productsUsed
- a bit-wise OR of product values defined in ProductNames
.public static boolean isCurrentLnfDecorated()
public static void main(java.lang.String[] args)