public abstract class AbstractColorScheme extends Object implements ColorScheme
ColorScheme stores listeners and UIProperties. This scheme
also calls updateUI() when the look and feel changed.COLOR_SCHEME_PARAMETER, EXTENSION_NAME| Constructor and Description |
|---|
AbstractColorScheme() |
| Modifier and Type | Method and Description |
|---|---|
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
ColorManagers 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBridge, getResourcepublic void addListener(UISchemeListener<Color,DockColor,ColorBridge> listener)
UISchemeaddListener in interface UIScheme<Color,DockColor,ColorBridge>listener - the new listener, not nullpublic void removeListener(UISchemeListener<Color,DockColor,ColorBridge> listener)
UISchemeremoveListener 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()
ColorManagers that are currently installed on this scheme.public void install(UIProperties<Color,DockColor,ColorBridge> properties)
UISchemeproperties.install in interface UIScheme<Color,DockColor,ColorBridge>properties - the owner of this schemepublic void uninstall(UIProperties<Color,DockColor,ColorBridge> properties)
UISchemeproperties.uninstall in interface UIScheme<Color,DockColor,ColorBridge>properties - an old client of this schemeprotected abstract void updateUI()
Copyright © 2017 Docking Frames. All rights reserved.