public class CheckBoxEditor
extends java.beans.PropertyEditorSupport
| Constructor and Description |
|---|
CheckBoxEditor()
default constructor, opens the Editor already in Editable mode, i.e.
|
CheckBoxEditor(boolean editableMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachEnv(PropertyEnv env) |
protected boolean |
getBoolValue()
Returns value of the property as boolean
|
java.awt.Component |
getInPlaceCustomEditor() |
boolean |
hasInPlaceCustomEditor() |
boolean |
isPaintable() |
void |
paintValue(java.awt.Graphics gfx,
java.awt.Rectangle box) |
void |
setBackground(java.awt.Color color) |
protected void |
setBoolValue(boolean newValue) |
protected void |
setNodeProperty(boolean newValue,
Node.Property fd) |
boolean |
supportsEditingTaggedValues() |
public CheckBoxEditor()
public CheckBoxEditor(boolean editableMode)
eitableMode - if true, the editor is active on the first click, if not,
the user has to click first to be able to change the checkbox.public boolean isPaintable()
isPaintable in interface java.beans.PropertyEditorisPaintable in class java.beans.PropertyEditorSupportpublic void paintValue(java.awt.Graphics gfx,
java.awt.Rectangle box)
paintValue in interface java.beans.PropertyEditorpaintValue in class java.beans.PropertyEditorSupportpublic java.awt.Component getInPlaceCustomEditor()
protected void setNodeProperty(boolean newValue,
Node.Property fd)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionpublic boolean hasInPlaceCustomEditor()
public boolean supportsEditingTaggedValues()
protected boolean getBoolValue()
protected void setBoolValue(boolean newValue)
public void attachEnv(PropertyEnv env)
public void setBackground(java.awt.Color color)