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()
IconThemeManager
getDefault
in interface IconThemeManager
public int getCount()
getCount
in interface IconThemeManager
public void setCurrent(IconTheme iconTheme)
IconThemeManager
setCurrent
in interface IconThemeManager
public IconTheme getCurrent()
IconThemeManager
getCurrent
in interface IconThemeManager
public IconTheme get(String themeID)
IconThemeManager
get
in interface IconThemeManager
public IconTheme get(int index)
get
in interface IconThemeManager
public Iterator<IconTheme> iterator()
iterator
in interface IconThemeManager
public boolean contains(IconTheme theme)
contains
in interface IconThemeManager
public boolean add(IconTheme theme)
add
in interface IconThemeManager
public boolean remove(IconTheme theme)
remove
in interface IconThemeManager
public void clear()
clear
in interface IconThemeManager
public FolderSet getRepository()
getRepository
in interface IconThemeManager
public void update(Observable observable, Object notification)
Observer
Observable
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 Observer
s 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.