|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.util.color.AbstractDockColor
public abstract class AbstractDockColor
A DockColor
that contains more than one Color
:
ColorManager
ColorManager
.
Constructor Summary | |
---|---|
AbstractDockColor(String id)
Creates a new DockColor . |
|
AbstractDockColor(String id,
Class<? extends DockColor> kind)
Creates a new DockColor . |
|
AbstractDockColor(String id,
Class<? extends DockColor> kind,
Color backup)
Creates a new DockColor . |
|
AbstractDockColor(String id,
Color backup)
Creates a new DockColor . |
Method Summary | |
---|---|
protected abstract void |
changed(Color oldColor,
Color newColor)
Called when the color of this AbstractDockColor has changed |
Color |
color()
Gets the first non- null value of the list
override , value , backup . |
void |
connect(DockController controller)
This method just calls setManager(ColorManager) with the
controller s ColorManager . |
Color |
getBackup()
Gets the backup color. |
String |
getId()
Gets the identifier of this color. |
Class<? extends DockColor> |
getKind()
Gets the kind of this color. |
Color |
getValue()
Gets the override value. |
void |
set(Color color)
Called by the ColorProvider when the color changes. |
void |
setBackup(Color backup)
Sets the backup color. |
void |
setId(String id)
Changes the identifier of this color. |
void |
setKind(Class<? extends DockColor> kind)
Changes the kind of this color. |
void |
setManager(ColorManager manager)
Sets the manager which owns this DockColor , automatically
add or removes this DockColor from the manager |
void |
setValue(Color value)
Sets the override value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDockColor(String id)
DockColor
.
id
- the id of the color for which this
should listenpublic AbstractDockColor(String id, Class<? extends DockColor> kind)
DockColor
.
id
- the id of the color for which this
should listenkind
- the kind of DockColor
this ispublic AbstractDockColor(String id, Color backup)
DockColor
.
id
- the id of the color for which this
should listenbackup
- a backup color, can be null
public AbstractDockColor(String id, Class<? extends DockColor> kind, Color backup)
DockColor
.
id
- the id of the color for which this
should listenkind
- the kind of DockColor
this is, can be null
backup
- a backup color, can be null
Method Detail |
---|
public void setId(String id)
id
- the new id, must not be null
public String getId()
null
public void setKind(Class<? extends DockColor> kind)
ColorManager
to find out, which ColorProvider
should be used to interact with
this DockColor
.
kind
- the new kind, not null
. The kind should be
a class or interfaces that is implemented by this DockColor
.public Class<? extends DockColor> getKind()
setKind(Class)
.
null
public void setManager(ColorManager manager)
DockColor
, automatically
add or removes this DockColor
from the manager
manager
- the new manager, can be null
public void connect(DockController controller)
setManager(ColorManager)
with the
controller
s ColorManager
.
controller
- the owner of this DockColor
or null
public void set(Color color)
DockColor
ColorProvider
when the color changes.
set
in interface DockColor
color
- the new color, can be null
public Color color()
null
value of the list
override
, value
, backup
.
null
protected abstract void changed(Color oldColor, Color newColor)
AbstractDockColor
has changed
oldColor
- the old color, can be null
newColor
- the new color, can be null
public void setValue(Color value)
value
- the new override or null
public Color getValue()
null
public void setBackup(Color backup)
backup
- the backup or null
public Color getBackup()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |