public class EmptyStringToNullEditor extends PropertyEditorWithMapper
EmptyStringToNullEditor is a wrapper for building
PropertyEditors that handle setAsText("") like
setAsText(null).
Wrap the original editor with the EmptyStringToNullEditor
PropertyEditor wrappedEditor = new EmptyStringToNullEditor(originalEditor);When somebody calls
setAsText("") on the wrappedEditor,
then it calls setAsText(null) on the originalEditor. All
other values and all other methods are delegated to the originalEditor.| Constructor and Description |
|---|
EmptyStringToNullEditor(PropertyEditor propertyEditor) |
addPropertyChangeListener, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setValue, supportsCustomEditorpublic EmptyStringToNullEditor(PropertyEditor propertyEditor)
Copyright © 2012-2013. All Rights Reserved.