|
org.netbeans.core/2 3.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
org.netbeans.beaninfo.editors.CharEditor
public class CharEditor
Editor for Character.TYPE
| Constructor Summary | |
|---|---|
CharEditor()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.beans.PropertyEditorSupport |
|---|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.beans.PropertyEditor |
|---|
addPropertyChangeListener, getCustomEditor, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor |
| Constructor Detail |
|---|
public CharEditor()
| Method Detail |
|---|
public String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupport
public void setAsText(String text)
throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupporttext - The string to be parsed.
IllegalArgumentException
public void setValue(Object newValue)
throws IllegalArgumentException
setValue in interface PropertyEditorsetValue in class PropertyEditorSupportv - new value
IllegalArgumentExceptionpublic String getJavaInitializationString()
Example results are "2", "new Color(127,127,34)", "Color.orange", etc.
getJavaInitializationString in interface PropertyEditorgetJavaInitializationString in class PropertyEditorSupportpublic Component getInPlaceCustomEditor()
getInPlaceCustomEditor in interface EnhancedPropertyEditorpublic boolean hasInPlaceCustomEditor()
hasInPlaceCustomEditor in interface EnhancedPropertyEditorpublic boolean supportsEditingTaggedValues()
supportsEditingTaggedValues in interface EnhancedPropertyEditor
|
org.netbeans.core/2 3.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||