public class PlafManager
extends java.lang.Object
Constructor and Description |
---|
PlafManager() |
Modifier and Type | Method and Description |
---|---|
static Theme |
addCustomTheme(java.lang.String themeName,
java.util.Properties p) |
static java.lang.String |
getSystemThemeName() |
static javax.swing.plaf.ComponentUI |
getUI(javax.swing.JComponent target)
Returns the appropriate
ComponentUI implementation for
target . |
static void |
installPreferredTheme() |
static void |
installSystemTheme() |
static Theme |
loadCustomTheme(java.lang.String themeName,
java.util.Properties p,
boolean exclusive) |
static Theme |
removeCustomTheme(java.lang.String themeName) |
static Theme |
setCustomTheme(java.lang.String themeName,
java.util.Properties p) |
static void |
setPreferredTheme(java.util.Properties p) |
static void |
setPreferredTheme(java.lang.String themeName) |
static void |
setPreferredTheme(java.lang.String themeName,
boolean reload) |
public static java.lang.String getSystemThemeName()
public static void installSystemTheme()
public static void setPreferredTheme(java.util.Properties p)
public static void setPreferredTheme(java.lang.String themeName)
public static void setPreferredTheme(java.lang.String themeName, boolean reload)
public static void installPreferredTheme()
public static Theme addCustomTheme(java.lang.String themeName, java.util.Properties p)
public static Theme setCustomTheme(java.lang.String themeName, java.util.Properties p)
public static Theme loadCustomTheme(java.lang.String themeName, java.util.Properties p, boolean exclusive)
public static Theme removeCustomTheme(java.lang.String themeName)
public static javax.swing.plaf.ComponentUI getUI(javax.swing.JComponent target)
ComponentUI
implementation for
target
. In case the component is a member of the installed look
and feel, this method first queries UIManager.getUI(target)
before attempting to resolve it locally.target
- the JComponent
to return the ComponentUI
forComponentUI
object for target
java.lang.NullPointerException
- if target
is null
UIManager.getUI(javax.swing.JComponent)