Package org.flexdock.plaf
Class PlafManager
- java.lang.Object
-
- org.flexdock.plaf.PlafManager
-
public class PlafManager extends java.lang.Object- Author:
- Christopher Butler
-
-
Constructor Summary
Constructors Constructor Description PlafManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ThemeaddCustomTheme(java.lang.String themeName, java.util.Properties p)static java.lang.StringgetSystemThemeName()static javax.swing.plaf.ComponentUIgetUI(javax.swing.JComponent target)Returns the appropriateComponentUIimplementation fortarget.static voidinstallPreferredTheme()static voidinstallPreferredTheme(boolean update)static voidinstallSystemTheme()static ThemeloadCustomTheme(java.lang.String themeName, java.util.Properties p, boolean exclusive)static ThemeremoveCustomTheme(java.lang.String themeName)static ThemesetCustomTheme(java.lang.String themeName, java.util.Properties p)static voidsetPreferredTheme(java.lang.String themeName)static voidsetPreferredTheme(java.lang.String themeName, boolean reload)static voidsetPreferredTheme(java.util.Properties p)
-
-
-
Method Detail
-
getSystemThemeName
public static java.lang.String getSystemThemeName()
-
installSystemTheme
public static void installSystemTheme()
-
setPreferredTheme
public static void setPreferredTheme(java.util.Properties p)
-
setPreferredTheme
public static void setPreferredTheme(java.lang.String themeName)
-
setPreferredTheme
public static void setPreferredTheme(java.lang.String themeName, boolean reload)
-
installPreferredTheme
public static void installPreferredTheme(boolean update)
-
installPreferredTheme
public static void installPreferredTheme()
-
addCustomTheme
public static Theme addCustomTheme(java.lang.String themeName, java.util.Properties p)
-
setCustomTheme
public static Theme setCustomTheme(java.lang.String themeName, java.util.Properties p)
-
loadCustomTheme
public static Theme loadCustomTheme(java.lang.String themeName, java.util.Properties p, boolean exclusive)
-
removeCustomTheme
public static Theme removeCustomTheme(java.lang.String themeName)
-
getUI
public static javax.swing.plaf.ComponentUI getUI(javax.swing.JComponent target)
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:
java.lang.NullPointerException- iftargetisnull- See Also:
UIManager.getUI(javax.swing.JComponent)
-
-