public abstract class ConverterPropertyEditorBase extends PropertyEditorSupport
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 and Description |
---|
ConverterPropertyEditorBase() |
Modifier and Type | Method and Description |
---|---|
String |
getAsText()
Convert an object of type
getTargetClass() to text by delegating to a
converter obtained from the Faces Application. |
protected abstract Class<?> |
getTargetClass()
Return the target class of the objects that are being edited.
|
void |
setAsText(String textValue)
Convert the
textValue to an object of type getTargetClass() by delegating to a converter in the faces Application. |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
protected abstract Class<?> getTargetClass()
Converter
from
the Faces application.public void setAsText(String textValue) throws IllegalArgumentException
textValue
to an object of type getTargetClass()
by delegating to a converter in the faces Application.setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public String getAsText()
getTargetClass()
to text by delegating to a
converter obtained from the Faces Application.getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
Copyright © 2010–2019 JBoss by Red Hat. All rights reserved.