|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentStateSupport
A component should implement this interface if it supports various background and foreground for different states.
Those states are defined in ThemePainter
.
Method Summary | |
---|---|
Color |
getBackgroundOfState(int state)
Gets the background for different states. |
Color |
getForegroundOfState(int state)
Gets the foreground for different states. |
void |
setBackgroundOfState(int state,
Color color)
Sets the background for different states. |
void |
setForegroundOfState(int state,
Color color)
Sets the foreground for different states. |
Method Detail |
---|
Color getBackgroundOfState(int state)
state
- the button state. Valid values are ThemePainter.STATE_DEFAULT, ThemePainter.STATE_ROLLOVER,
ThemePainter.STATE_SELECTED and ThemePainter.STATE_PRESSED.
void setBackgroundOfState(int state, Color color)
state
- the button state. Valid values are ThemePainter.STATE_DEFAULT, ThemePainter.STATE_ROLLOVER,
ThemePainter.STATE_SELECTED and ThemePainter.STATE_PRESSED.color
- the new background for the state.Color getForegroundOfState(int state)
state
- the button state. Valid values are ThemePainter.STATE_DEFAULT, ThemePainter.STATE_ROLLOVER,
ThemePainter.STATE_SELECTED and ThemePainter.STATE_PRESSED.
void setForegroundOfState(int state, Color color)
state
- the button state. Valid values are ThemePainter.STATE_DEFAULT, ThemePainter.STATE_ROLLOVER,
ThemePainter.STATE_SELECTED and ThemePainter.STATE_PRESSED.color
- the new foreground for the state.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |