public class ColorInput extends ButtonInput
buttonEnabled, clientControl, clientControlEnabled, value| Constructor and Description |
|---|
ColorInput(org.eclipse.swt.graphics.Color color,
boolean foreground)
Erzeugt ein neues ColorInput mit der angegebenen Farbe.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.widgets.Control |
getClientControl(org.eclipse.swt.widgets.Composite parent)
Liefert das einzubettende Eingabefeld.
|
java.lang.Object |
getValue()
Liefert die aktuell ausgewaehlte Farbe.
|
void |
setValue(java.lang.Object value)
Erwartet ein Objekt vom Typ
Color. |
protected void |
update()
Leer ueberschrieben, weil wir hier keine Farbaenderungen wollen
|
addButtonListener, disable, disableButton, disableClientControl, enable, enableButton, enableClientControl, focus, getControl, isEnabled, setButtonImage, setButtonText, setEnabledaddListener, getData, getName, getParent, getStyleBits, hasChanged, isMandatory, paint, paint, setComment, setData, setInvalidChars, setMandatory, setName, setValidCharspublic ColorInput(org.eclipse.swt.graphics.Color color,
boolean foreground)
color - initial anzuzeigende Farbe.foreground - true, wenn es sich um eine Vordergrundfarbe handelt.public org.eclipse.swt.widgets.Control getClientControl(org.eclipse.swt.widgets.Composite parent)
ButtonInputgetClientControl in class ButtonInputparent - Composite, in dem sich das ClientControl malen soll.ButtonInput.getClientControl(org.eclipse.swt.widgets.Composite)public java.lang.Object getValue()
Color.Input.getValue()public void setValue(java.lang.Object value)
Color.value - der neu anzuzeigende Wert.Input.setValue(java.lang.Object)protected void update()
throws OperationCanceledException
update in class ButtonInputOperationCanceledExceptionAbstractInput.update()