Constructor and Description |
---|
ColorEditor(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.graphics.RGB color)
Create a color editor button
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Color |
getColor(org.eclipse.swt.graphics.Device device)
Get the color, it has to be disposed by the caller
|
org.eclipse.swt.widgets.Control |
getControl()
Get the editor control
|
org.eclipse.swt.graphics.RGB |
getValue()
Get the value
|
protected void |
init(org.eclipse.swt.widgets.Control control)
Determine with and height
|
boolean |
isChanged()
States if the value has been changed
|
void |
setValue(org.eclipse.swt.graphics.RGB color)
Set the value
|
public ColorEditor(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.graphics.RGB color)
parent
- the parent compositecolor
- the initial colorprotected void init(org.eclipse.swt.widgets.Control control)
control
- the parent controlpublic org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device)
device
- the device for the colorpublic org.eclipse.swt.graphics.RGB getValue()
Editor
getValue
in interface Editor<org.eclipse.swt.graphics.RGB>
Editor.getValue()
public void setValue(org.eclipse.swt.graphics.RGB color)
Editor
setValue
in interface Editor<org.eclipse.swt.graphics.RGB>
color
- the value to setEditor.setValue(Object)
public org.eclipse.swt.widgets.Control getControl()
Editor
getControl
in interface Editor<org.eclipse.swt.graphics.RGB>
Editor.getControl()
public boolean isChanged()
Editor
isChanged
in interface Editor<org.eclipse.swt.graphics.RGB>
Editor.isChanged()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a