public class DesktopThemeRegistry extends java.lang.Object implements ThemeRegistry
Constructor and Description |
---|
DesktopThemeRegistry()
Initialize the registry with the default theme (a.k.a Breeze).
|
Modifier and Type | Method and Description |
---|---|
boolean |
deregister(Theme theme)
Remove a theme from the list of available desktop themes
|
Theme |
getTheme(java.lang.String themeName)
Returns the desktop theme with the given name
|
Theme[] |
getThemes()
Returns a list of currently registered desktop themes
|
boolean |
hasTheme(java.lang.String themeName)
Check if a dekstop theme with the given name is available to use
|
boolean |
register(Theme theme)
Register a desktop theme.
|
public DesktopThemeRegistry()
public boolean register(Theme theme)
register
in interface ThemeRegistry
theme
- an instance of StandardThemepublic boolean deregister(Theme theme)
deregister
in interface ThemeRegistry
theme
- the theme to be removedpublic Theme[] getThemes()
getThemes
in interface ThemeRegistry
public boolean hasTheme(java.lang.String themeName)
hasTheme
in interface ThemeRegistry
themeName
- the name of the themepublic Theme getTheme(java.lang.String themeName)
getTheme
in interface ThemeRegistry
themeName
- theme nameCopyright © 2005-2021 Potix Corporation. All Rights Reserved.