Package org.flexdock.plaf
Class PlafManager
java.lang.Object
org.flexdock.plaf.PlafManager
- Author:
- Christopher Butler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThemeaddCustomTheme(String themeName, Properties p) static Stringstatic ComponentUIgetUI(JComponent target) Returns the appropriateComponentUIimplementation fortarget.static voidstatic voidinstallPreferredTheme(boolean update) static voidstatic ThemeloadCustomTheme(String themeName, Properties p, boolean exclusive) static ThemeremoveCustomTheme(String themeName) static ThemesetCustomTheme(String themeName, Properties p) static voidsetPreferredTheme(String themeName) static voidsetPreferredTheme(String themeName, boolean reload) static void
-
Constructor Details
-
PlafManager
public PlafManager()
-
-
Method Details
-
getSystemThemeName
-
installSystemTheme
public static void installSystemTheme() -
setPreferredTheme
-
setPreferredTheme
-
setPreferredTheme
-
installPreferredTheme
public static void installPreferredTheme(boolean update) -
installPreferredTheme
public static void installPreferredTheme() -
addCustomTheme
-
setCustomTheme
-
loadCustomTheme
-
removeCustomTheme
-
getUI
Returns the appropriateComponentUIimplementation fortarget. In case the component is a member of the installed look and feel, this method first queriesUIManager.getUI(target)before attempting to resolve it locally.- Parameters:
target- theJComponentto return theComponentUIfor- Returns:
- the
ComponentUIobject fortarget - Throws:
NullPointerException- iftargetisnull- See Also:
-