|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.themes.color.AbstractColorScheme
public abstract class AbstractColorScheme
This abstract ColorScheme
stores listeners and UIProperties
. This scheme
also calls updateUI()
when the look and feel changed.
Field Summary |
---|
Fields inherited from interface bibliothek.gui.dock.themes.ColorScheme |
---|
COLOR_SCHEME_PARAMETER, EXTENSION_NAME |
Constructor Summary | |
---|---|
AbstractColorScheme()
|
Method Summary | |
---|---|
void |
addListener(UISchemeListener<Color,DockColor,ColorBridge> listener)
Adds a listener to this scheme. |
protected void |
fire(UISchemeEvent<Color,DockColor,ColorBridge> event)
Calls UISchemeListener.changed(UISchemeEvent) on all currently registered listeners. |
protected boolean |
hasListeners()
Tells whether this scheme has listeners attached or not. |
void |
install(UIProperties<Color,DockColor,ColorBridge> properties)
Informs this scheme that it is now used by properties . |
protected UISchemeListener<Color,DockColor,ColorBridge>[] |
listeners()
Gets all the listeners that are currently known to this scheme. |
protected ColorManager[] |
managers()
Gets all the ColorManager s that are currently installed on this scheme. |
void |
removeListener(UISchemeListener<Color,DockColor,ColorBridge> listener)
Removes a listener from this scheme. |
void |
uninstall(UIProperties<Color,DockColor,ColorBridge> properties)
Informs this scheme that it is no longer used by properties . |
protected abstract void |
updateUI()
Called when the look and feel changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.util.UIScheme |
---|
getBridge, getResource |
Constructor Detail |
---|
public AbstractColorScheme()
Method Detail |
---|
public void addListener(UISchemeListener<Color,DockColor,ColorBridge> listener)
UIScheme
addListener
in interface UIScheme<Color,DockColor,ColorBridge>
listener
- the new listener, not null
public void removeListener(UISchemeListener<Color,DockColor,ColorBridge> listener)
UIScheme
removeListener
in interface UIScheme<Color,DockColor,ColorBridge>
listener
- the listener to removeprotected UISchemeListener<Color,DockColor,ColorBridge>[] listeners()
protected boolean hasListeners()
true
if there is at least one listener attachedprotected void fire(UISchemeEvent<Color,DockColor,ColorBridge> event)
UISchemeListener.changed(UISchemeEvent)
on all currently registered listeners.
event
- the event to fireprotected ColorManager[] managers()
ColorManager
s that are currently installed on this scheme.
public void install(UIProperties<Color,DockColor,ColorBridge> properties)
UIScheme
properties
.
install
in interface UIScheme<Color,DockColor,ColorBridge>
properties
- the owner of this schemepublic void uninstall(UIProperties<Color,DockColor,ColorBridge> properties)
UIScheme
properties
.
uninstall
in interface UIScheme<Color,DockColor,ColorBridge>
properties
- an old client of this schemeprotected abstract void updateUI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |