|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.preference.ColorSelector
The ColorSelector is a wrapper for a button that displays a selected Color and allows the user to change the selection.
Constructor Summary | |
ColorSelector(Composite parent)
Create a new instance of the reciever and the button that it wrappers in the supplied parent Composite |
Method Summary | |
Button |
getButton()
Get the button control being wrappered by the selector. |
RGB |
getColorValue()
Return the currently displayed color. |
void |
setColorValue(RGB rgb)
Set the current color value and update the control. |
void |
setEnabled(boolean state)
Set whether or not the button is enabled. |
protected void |
updateColorImage()
Update the image being displayed on the button using the current color setting, |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ColorSelector(Composite parent)
parent.
- The parent of the button.Method Detail |
public RGB getColorValue()
public void setColorValue(RGB rgb)
rgb.
- The new color.public Button getButton()
protected void updateColorImage()
public void setEnabled(boolean state)
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |