|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
D
- the type of DockColor
s this provider can handlepublic interface ColorProvider<D extends DockColor>
A ColorProvider
is a layer between a ColorManager
and
a DockColor
. A provider can exchange the color that is used for
some DockColor
.
Method Summary | |
---|---|
void |
add(String id,
D observer)
Adds a listener for some type of color to this provider. |
void |
remove(String id,
D observer)
Removes a listener for some type of color from this provider. |
void |
set(String id,
Color color,
D observer)
Called by a ColorManager when one color has been exchanged. |
Method Detail |
---|
void add(String id, D observer)
id
- the id of the color the observer needsobserver
- the new listenervoid remove(String id, D observer)
id
- the id of the color which the observer was observingobserver
- the listener to removevoid set(String id, Color color, D observer)
ColorManager
when one color has been exchanged.
Normally a provider would call DockColor.set(Color)
on
observer
with color
as argument.
id
- the identifier of the colorcolor
- the new color, can be null
observer
- the observer which is affected
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |