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.ExPropertyEditor
Enhancement for defaultStringEditor
supplied by NetBeans core capable to displaynull
values. 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 void
attachEnv(org.openide.explorer.propertysheet.PropertyEnv env)
java.lang.String
getAsText()
java.awt.Component
getCustomEditor()
java.lang.String
getJavaInitializationString()
boolean
isEditable()
gets information if the text in editor should be editable or notvoid
setAsText(java.lang.String s)
sets new valueboolean
supportsCustomEditor()
-
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:
getAsText
in interfacejava.beans.PropertyEditor
- Overrides:
getAsText
in classjava.beans.PropertyEditorSupport
-
setAsText
public void setAsText(java.lang.String s)
sets new value- Specified by:
setAsText
in interfacejava.beans.PropertyEditor
- Overrides:
setAsText
in classjava.beans.PropertyEditorSupport
-
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interfacejava.beans.PropertyEditor
- Overrides:
getJavaInitializationString
in classjava.beans.PropertyEditorSupport
-
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditor
in interfacejava.beans.PropertyEditor
- Overrides:
supportsCustomEditor
in classjava.beans.PropertyEditorSupport
-
getCustomEditor
public java.awt.Component getCustomEditor()
- Specified by:
getCustomEditor
in interfacejava.beans.PropertyEditor
- Overrides:
getCustomEditor
in classjava.beans.PropertyEditorSupport
-
attachEnv
public void attachEnv(org.openide.explorer.propertysheet.PropertyEnv env)
- Specified by:
attachEnv
in interfaceorg.openide.explorer.propertysheet.ExPropertyEditor
-
-