public class CharEditor extends PropertyEditorSupport implements EnhancedPropertyEditor
Constructor and Description |
---|
CharEditor() |
Modifier and Type | Method and Description |
---|---|
String |
getAsText()
Converts the char to String by either leaving
the single char or by creating unicode escape.
|
Component |
getInPlaceCustomEditor()
We don't support in place custom editor.
|
String |
getJavaInitializationString()
This method is intended for use when generating Java code to set
the value of the property.
|
boolean |
hasInPlaceCustomEditor()
We don't support in place custom editor.
|
void |
setAsText(String text)
Set the property value by parsing given String.
|
void |
setValue(Object newValue)
Accepts Character and String values.
|
boolean |
supportsEditingTaggedValues() |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getCustomEditor, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
text
- The string to be parsed.IllegalArgumentException
public void setValue(Object newValue) throws IllegalArgumentException
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
newValue
- new valueIllegalArgumentException
public String getJavaInitializationString()
Example results are "2", "new Color(127,127,34)", "Color.orange", etc.
getJavaInitializationString
in interface PropertyEditor
getJavaInitializationString
in class PropertyEditorSupport
public Component getInPlaceCustomEditor()
getInPlaceCustomEditor
in interface EnhancedPropertyEditor
public boolean hasInPlaceCustomEditor()
hasInPlaceCustomEditor
in interface EnhancedPropertyEditor
public boolean supportsEditingTaggedValues()
supportsEditingTaggedValues
in interface EnhancedPropertyEditor