Package com.im.commons.ui.beans
Class StringOrNullEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- com.im.commons.ui.beans.StringOrNullEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor,org.openide.explorer.propertysheet.ExPropertyEditor
public class StringOrNullEditor extends java.beans.PropertyEditorSupport implements org.openide.explorer.propertysheet.ExPropertyEditorEnhancement for defaultStringEditorsupplied by NetBeans core capable to displaynullvalues. Mostly a copy of o.n.core/src/org/netbeans/beaninfo/editors/StringEditor.java with nullValue handling from o.n.core/src/org/netbeans/beaninfo/editors/ObjectEditor.java
-
-
Constructor Summary
Constructors Constructor Description StringOrNullEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachEnv(org.openide.explorer.propertysheet.PropertyEnv env)java.lang.StringgetAsText()java.awt.ComponentgetCustomEditor()java.lang.StringgetJavaInitializationString()booleanisEditable()gets information if the text in editor should be editable or notvoidsetAsText(java.lang.String s)sets new valuebooleansupportsCustomEditor()-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue
-
-
-
-
Method Detail
-
isEditable
public boolean isEditable()
gets information if the text in editor should be editable or not
-
getAsText
public java.lang.String getAsText()
- Specified by:
getAsTextin interfacejava.beans.PropertyEditor- Overrides:
getAsTextin classjava.beans.PropertyEditorSupport
-
setAsText
public void setAsText(java.lang.String s)
sets new value- Specified by:
setAsTextin interfacejava.beans.PropertyEditor- Overrides:
setAsTextin classjava.beans.PropertyEditorSupport
-
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- Specified by:
getJavaInitializationStringin interfacejava.beans.PropertyEditor- Overrides:
getJavaInitializationStringin classjava.beans.PropertyEditorSupport
-
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditorin interfacejava.beans.PropertyEditor- Overrides:
supportsCustomEditorin classjava.beans.PropertyEditorSupport
-
getCustomEditor
public java.awt.Component getCustomEditor()
- Specified by:
getCustomEditorin interfacejava.beans.PropertyEditor- Overrides:
getCustomEditorin classjava.beans.PropertyEditorSupport
-
attachEnv
public void attachEnv(org.openide.explorer.propertysheet.PropertyEnv env)
- Specified by:
attachEnvin interfaceorg.openide.explorer.propertysheet.ExPropertyEditor
-
-