|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LookAndFeelColors
LookAndFeelColors
is a wrapper around a LookAndFeel
and allows access to a set of colors used for specific purposes.
DockUI.registerColors(String, LookAndFeelColors)
Field Summary | |
---|---|
static String |
CONTROL_SHADOW
The shadow around controls |
static String |
PANEL_BACKGROUND
The background color for any kind of panels |
static String |
PANEL_FOREGROUND
The foreground color for any kind of panels |
static String |
SELECTION
The color used for ordinary selections. |
static String |
TITLE_BACKGROUND
The background of unselected title components. |
static String |
TITLE_FOREGROUND
The foreground of unselected title components. |
static String |
TITLE_SELECTION_BACKGROUND
The background of selected title components. |
static String |
TITLE_SELECTION_FOREGROUND
The foreground of selected title components. |
static String |
WINDOW_BORDER
The color for borderes around internal windows. |
Method Summary | |
---|---|
void |
addListener(LookAndFeelColorsListener listener)
Adds a listener to this object, the listener must be informed when a color changes. |
void |
bind()
Called when this objects gets activated. |
Color |
getColor(String key)
Searches for a color respecting the properties of the current LookAndFeel. |
void |
removeListener(LookAndFeelColorsListener listener)
Removes a listener from this object. |
void |
unbind()
Called when this objects gets deactivated. |
Field Detail |
---|
static final String TITLE_BACKGROUND
static final String TITLE_FOREGROUND
static final String TITLE_SELECTION_BACKGROUND
static final String TITLE_SELECTION_FOREGROUND
static final String SELECTION
static final String PANEL_BACKGROUND
static final String PANEL_FOREGROUND
static final String CONTROL_SHADOW
static final String WINDOW_BORDER
Method Detail |
---|
Color getColor(String key)
key
- one of the string keys defined in this interface, clients
may extend the set of keys.
key
or null
void bind()
void unbind()
void addListener(LookAndFeelColorsListener listener)
listener
- the listener to addvoid removeListener(LookAndFeelColorsListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |