Package org.flexdock.plaf
Class PlafManager
java.lang.Object
org.flexdock.plaf.PlafManager
- Author:
- Christopher Butler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Theme
addCustomTheme
(String themeName, Properties p) static String
static ComponentUI
getUI
(JComponent target) Returns the appropriateComponentUI
implementation fortarget
.static void
static void
installPreferredTheme
(boolean update) static void
static Theme
loadCustomTheme
(String themeName, Properties p, boolean exclusive) static Theme
removeCustomTheme
(String themeName) static Theme
setCustomTheme
(String themeName, Properties p) static void
setPreferredTheme
(String themeName) static void
setPreferredTheme
(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 appropriateComponentUI
implementation 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
- theJComponent
to return theComponentUI
for- Returns:
- the
ComponentUI
object fortarget
- Throws:
NullPointerException
- iftarget
isnull
- See Also:
-