java.lang.Object
java.beans.PropertyEditorSupport
com.sun.faces.application.ConverterPropertyEditorBase
- All Implemented Interfaces:
PropertyEditor
- Direct Known Subclasses:
ConverterPropertyEditorFor_XXXX
Abstract base for a
PropertyEditor that delegates to a faces Converter that was registered by-type
in a faces-config descriptor. Concrete implementations (such as generated by ConverterPropertyEditorFactory)
will override getTargetClass(). (This is based on the original ConverterPropertyEditor code).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert an object of typegetTargetClass()to text by delegating to a converter obtained from the Faces Application.protected abstract Class<?> Return the target class of the objects that are being edited.voidConvert thetextValueto an object of typegetTargetClass()by delegating to a converter in the faces Application.Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
ConverterPropertyEditorBase
public ConverterPropertyEditorBase()
-
-
Method Details
-
getTargetClass
-
setAsText
Convert thetextValueto an object of typegetTargetClass()by delegating to a converter in the faces Application.- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- Throws:
IllegalArgumentException
-
getAsText
Convert an object of typegetTargetClass()to text by delegating to a converter obtained from the Faces Application.- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport
-