public abstract class ConverterPropertyEditorBase
extends java.beans.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 |
---|---|
java.lang.String |
getAsText()
Convert an object of type
getTargetClass() to text by delegating to a
converter obtained from the Faces Application. |
private java.lang.Object |
getPropertyEditorHelper() |
protected abstract java.lang.Class<?> |
getTargetClass()
Return the target class of the objects that are being edited.
|
void |
setAsText(java.lang.String textValue)
Convert the
textValue to an object of type getTargetClass() by delegating to a converter in the faces Application. |
protected abstract java.lang.Class<?> getTargetClass()
Converter
from
the Faces application.public void setAsText(java.lang.String textValue) throws java.lang.IllegalArgumentException
textValue
to an object of type getTargetClass()
by delegating to a converter in the faces Application.setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
java.lang.IllegalArgumentException
private java.lang.Object getPropertyEditorHelper() throws java.lang.Exception
java.lang.Exception
public java.lang.String getAsText()
getTargetClass()
to text by delegating to a
converter obtained from the Faces Application.getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.