|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.uif.laf.ExtUIManager
public final class ExtUIManager
A helper class that configures Swing related look issues:
LookChoiceStrategy
,
LookChoiceStrategies
,
LookConfiguration
,
LookConfigurations
,
UIManager
Field Summary | |
---|---|
static String |
DEFAULT_LAF_KEY
A key for the user preferences used to store and restore the classname of the default Look&Feel. |
Method Summary | |
---|---|
static LookAndFeel |
createLookAndFeelInstance(String className)
Creates and returns an instance of LookAndFeel for the
specified class name. |
static LookAndFeel |
getDefaultLookAndFeel()
Looks up the class name of the default Look&Feel, then create and returns an instance of this class. |
static String |
getDefaultLookClassName()
Looks up and returns the Look&Feel name as provided by the current LookChoiceStrategy. |
static LookChoiceStrategy |
getLookChoiceStrategy()
Returns the current LookChoiceStrategy. |
static LookConfigurations |
getLookConfigurations()
Returns a clone of the LookConfigurations object which is lazily initialized with default values. |
static LookAndFeel |
getStoredLookAndFeel()
Looks up the class name of the default Look&Feel, then create and returns an instance of this class. |
static String |
getStoredLookClassName()
Looks up and returns the class name of the Look&Feel that has been stored in the user preferences. |
static LookConfiguration |
getStoredLookConfiguration()
Looks up and returns the default LookConfiguration, that is the default Look&Feel plus theme - if any. |
static List |
getSupportedLookAndFeelInstances()
Lazily initializes and returns the list of supported look and feels sorted by name. |
static List |
lookupSupportedLookAndFeelInstances()
Looks up and returns a list of supported look&feels. |
static void |
setLookChoiceStrategy(LookChoiceStrategy strategy)
Sets a LookChoiceStrategy that will be used to lookup the very first look, if no look has been stored. |
static void |
setLookConfigurations(LookConfigurations newLookConfigurations)
Sets a new LookConfigurations object, stores them in the ApplicationContext's user preferences, sets the look and theme and finally updates all component tree UIs. |
static void |
setStoredLookAndFeel(LookAndFeel laf)
Stores the given LookAndFeel as default in the user preferences. |
static void |
setStoredLookConfiguration(LookConfiguration lookConfiguration)
Sets the LookConfiguration used as default. |
static void |
setup()
Installs the Plastic L&Fs, enables system fonts, restores the LookConfigurations from the application preferences and finally sets the selected look and theme. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_LAF_KEY
getDefaultLookClassName()
,
getDefaultLookAndFeel()
,
getStoredLookConfiguration()
,
Constant Field ValuesMethod Detail |
---|
public static LookChoiceStrategy getLookChoiceStrategy()
public static void setLookChoiceStrategy(LookChoiceStrategy strategy)
strategy
- the LookChoiceStrategy used to lookup the very first lookpublic static LookConfigurations getLookConfigurations()
public static void setLookConfigurations(LookConfigurations newLookConfigurations)
newLookConfigurations
- the LookConfigurations to setpublic static void setup()
This method shall be called before the any UI components are created. Therefore we don't need to update the component tree UIs. In contrast, if you set a new LookConfigurations object later, we store it in the prefs and update the component tree UIs.
setLookConfigurations(LookConfigurations)
,
setStoredLookConfiguration(LookConfiguration)
public static String getStoredLookClassName()
public static String getDefaultLookClassName()
public static LookAndFeel getStoredLookAndFeel()
public static LookAndFeel getDefaultLookAndFeel()
public static LookConfiguration getStoredLookConfiguration()
public static void setStoredLookAndFeel(LookAndFeel laf)
laf
- the LookAndFeel to be set as defaultpublic static void setStoredLookConfiguration(LookConfiguration lookConfiguration)
#setup
to determine the default look&feel plus theme.
Also used when restoring look configurations from the user preferences.
lookConfiguration
- the configuration used as defaultpublic static LookAndFeel createLookAndFeelInstance(String className)
LookAndFeel
for the
specified class name. Before the class is loaded, the given class name
may be replaced as defined in the JGoodies Looks Options
class. For example the Sun Windows L&F is replaced by the
JGoodies Windows L&F.
className
- the name of the class to be instantiated
public static List lookupSupportedLookAndFeelInstances()
public static List getSupportedLookAndFeelInstances()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |