public class ColorProperty extends Property
CHECKBOX_RENDERER, COMBOBOX_RENDERER, property, propertySheetOper, RADIOBUTTON_RENDERER, SET_RENDERER, STRING_RENDERER
Constructor and Description |
---|
ColorProperty(PropertySheetOperator propertySheetOper,
String name)
Creates a new instance of ColorProperty
|
Modifier and Type | Method and Description |
---|---|
Color |
getColorValue()
getter for Color value through Custom Editor
|
ColorCustomEditorOperator |
invokeCustomizer()
invokes custom property editor and returns proper custom editor operator
|
void |
setColorValue(Color value)
setter for Color value through Custom Editor
|
void |
setRGBValue(int r,
int g,
int b)
getter for RGB value through Custom Editor
|
void |
verify()
Performs verification by accessing all sub-components
|
canEditAsText, getName, getRendererName, getRow, getShortDescription, getValue, isEnabled, openEditor, setDefaultValue, setValue, setValue, supportsCustomEditor
public ColorProperty(PropertySheetOperator propertySheetOper, String name)
propertySheetOper
- PropertySheetOperator where to find property.name
- String property namepublic ColorCustomEditorOperator invokeCustomizer()
public void setRGBValue(int r, int g, int b)
r
- int redg
- int greenb
- int bluepublic void setColorValue(Color value)
value
- Colorpublic Color getColorValue()
public void verify()