|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.binding.format.support.AbstractFormatter org.springframework.binding.format.support.PropertyEditorFormatter
public class PropertyEditorFormatter
Adapts a property editor to the formatter interface.
Constructor Summary | |
---|---|
PropertyEditorFormatter(java.beans.PropertyEditor propertyEditor)
Wrap given property editor in a formatter. |
Method Summary | |
---|---|
protected java.lang.String |
doFormatValue(java.lang.Object value)
Template method subclasses should override to encapsulate formatting logic. |
protected java.lang.Object |
doParseValue(java.lang.String formattedValue,
java.lang.Class targetClass)
Template method subclasses should override to encapsulate parsing logic. |
java.beans.PropertyEditor |
getPropertyEditor()
Returns the wrapped property editor. |
Methods inherited from class org.springframework.binding.format.support.AbstractFormatter |
---|
formatValue, getEmptyFormattedValue, getEmptyValue, getExpectedFormat, isAllowEmpty, isEmpty, parseValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyEditorFormatter(java.beans.PropertyEditor propertyEditor)
Method Detail |
---|
public java.beans.PropertyEditor getPropertyEditor()
protected java.lang.String doFormatValue(java.lang.Object value)
AbstractFormatter
doFormatValue
in class AbstractFormatter
value
- the value to format
protected java.lang.Object doParseValue(java.lang.String formattedValue, java.lang.Class targetClass)
AbstractFormatter
doParseValue
in class AbstractFormatter
formattedValue
- the formatted string to parse
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |