|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nokia.mid.theme.ThemeManager
public class ThemeManager
ThemeManager allows for registering ThemeChangeListeners, getting
a list of Themes, the current Theme, and activating a different Theme.
| Constructor Summary | |
|---|---|
ThemeManager()
|
|
| Method Summary | |
|---|---|
static void |
addThemeChangeListener(ThemeChangeListener l)
Add a ThemeChangeListener to be notified when the Theme is
changed. |
static Theme |
getCurrentTheme()
Get the currently active Theme |
static Theme[] |
getThemes()
Get a list of all available Themes |
static void |
removeThemeChangeListener(ThemeChangeListener l)
Remove a ThemeChangeListener |
static boolean |
setCurrentTheme(Theme theme)
Change the active Theme for this MIDlet, for the current
session. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThemeManager()
| Method Detail |
|---|
public static Theme getCurrentTheme()
throws ThemeException
Theme
ThemeException
public static Theme[] getThemes()
throws ThemeException
Themes
ThemeException
public static boolean setCurrentTheme(Theme theme)
throws ThemeException
Theme for this MIDlet, for the current
session. Note that the Theme must be set before showing a Displayable.
theme - The theme to active (must be gotten through getCurrentTheme()
or getThemes().
ThemeException - When theme is null
public static void addThemeChangeListener(ThemeChangeListener l)
throws ThemeException
ThemeChangeListener to be notified when the Theme is
changed.
l - The ThemeChangeListener to add. If the listener is null or has
already been added, the call will be silently ignored.
ThemeExceptionpublic static void removeThemeChangeListener(ThemeChangeListener l)
ThemeChangeListener
l - The ThemeChangeListener to remove. If the listener is null, the
call will be silently ignored.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||