Top Description Constructors Methods
com.sun.faces.application

public abstract Class ConverterPropertyEditorBase

extends PropertyEditorSupport
Class Inheritance
Known Direct Subclasses
com.sun.faces.application.ConverterPropertyEditorFor_XXXX
Imports
java.beans.PropertyEditorSupport

Abstract base for a java.beans.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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getAsText()

Overrides java.beans.PropertyEditorSupport.getAsText.

Implements java.beans.PropertyEditor.getAsText.

Convert an object of type getTargetClass to text by delegating to a converter obtained from the Faces Application.

private Object
protected abstract Class<?>

Returns:

the target class.
getTargetClass
()

Return the target class of the objects that are being edited.

public void
setAsText(String
The string to be parsed.
textValue
)

Overrides java.beans.PropertyEditorSupport.setAsText.

Implements java.beans.PropertyEditor.setAsText.

Convert the textValue to an object of type getTargetClass by delegating to a converter in the faces Application.

Inherited from java.beans.PropertyEditorSupport:
addPropertyChangeListenerfirePropertyChangegetCustomEditorgetJavaInitializationStringgetSourcegetTagsgetValueisPaintablepaintValueremovePropertyChangeListenersetSourcesetValuesupportsCustomEditor

Constructor Detail

ConverterPropertyEditorBaseback to summary
public ConverterPropertyEditorBase()

Method Detail

getAsTextback to summary
public String getAsText()

Overrides java.beans.PropertyEditorSupport.getAsText.

Implements java.beans.PropertyEditor.getAsText.

Convert an object of type getTargetClass to text by delegating to a converter obtained from the Faces Application.

Returns:String

Doc from java.beans.PropertyEditorSupport.getAsText.

The property value as a string suitable for presentation to a human to edit.

Returns null if the value can't be expressed as a string.

If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().

Annotations
@Override
getPropertyEditorHelperback to summary
private Object getPropertyEditorHelper() throws Exception
getTargetClassback to summary
protected abstract Class<?> getTargetClass()

Return the target class of the objects that are being edited. This is used as a key to find the appropriate jakarta.faces.convert.Converter from the Faces application.

Returns:Class<?>

the target class.

setAsTextback to summary
public void setAsText(String textValue) throws IllegalArgumentException

Overrides java.beans.PropertyEditorSupport.setAsText.

Implements java.beans.PropertyEditor.setAsText.

Convert the textValue to an object of type getTargetClass by delegating to a converter in the faces Application.

Parameters
textValue:String

Doc from java.beans.PropertyEditorSupport.setAsText.

The string to be parsed.

Annotations
@Override