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
-
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.void
Convert thetextValue
to 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 thetextValue
to an object of typegetTargetClass()
by delegating to a converter in the faces Application.- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-
getAsText
Convert an object of typegetTargetClass()
to text by delegating to a converter obtained from the Faces Application.- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-