public class DefaultIconThemeManager extends Object implements IconThemeManager, ComplexObserver
| Constructor and Description |
|---|
DefaultIconThemeManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IconTheme theme) |
void |
clear() |
boolean |
contains(IconTheme theme) |
IconTheme |
get(int index) |
IconTheme |
get(String themeID)
Returns the theme that has been registered with the name that receives like
parameter
|
int |
getCount() |
IconTheme |
getCurrent()
Gets the current theme
|
IconTheme |
getDefault()
Gets the default theme
|
static IconThemeManager |
getIconThemeManager() |
FolderSet |
getRepository() |
Iterator<IconTheme> |
iterator() |
boolean |
remove(IconTheme theme) |
void |
setCurrent(IconTheme iconTheme)
Sets the iconTheme like current theme
|
void |
update(Observable observable,
Object notification)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
public static IconThemeManager getIconThemeManager()
public IconTheme getDefault()
IconThemeManagergetDefault in interface IconThemeManagerpublic int getCount()
getCount in interface IconThemeManagerpublic void setCurrent(IconTheme iconTheme)
IconThemeManagersetCurrent in interface IconThemeManagerpublic IconTheme getCurrent()
IconThemeManagergetCurrent in interface IconThemeManagerpublic IconTheme get(String themeID)
IconThemeManagerget in interface IconThemeManagerpublic IconTheme get(int index)
get in interface IconThemeManagerpublic Iterator<IconTheme> iterator()
iterator in interface IconThemeManagerpublic boolean contains(IconTheme theme)
contains in interface IconThemeManagerpublic boolean add(IconTheme theme)
add in interface IconThemeManagerpublic boolean remove(IconTheme theme)
remove in interface IconThemeManagerpublic void clear()
clear in interface IconThemeManagerpublic FolderSet getRepository()
getRepository in interface IconThemeManagerpublic void update(Observable observable, Object notification)
ObserverObservable object is changed and this
Observer has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer and other Observers listening to the same
Observable.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver and prepare this method
implementation to handle receiving DefaultComplexNotification instances
as well as direct notification objects.