|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.web.servlet.tags.form.ValueFormatter
final class ValueFormatter
Helper class for formatting values for rendering via a form tag. Supports two styles of
formatting: plain and PropertyEditor-aware.
Plain formatting simply prevents the string 'null' from appearing, replacing
it with an empty String, and adds HTML escaping as required.
PropertyEditor-aware formatting will attempt to use the supplied PropertyEditor
to render any non-String value before applying the default rules of plain formatting.
| Constructor Summary | |
|---|---|
ValueFormatter()
|
|
| Method Summary | |
|---|---|
String |
getDisplayString(Object value,
boolean htmlEscape)
Gets the display value of the supplied Object, HTML escaped
as required. |
String |
getDisplayString(Object value,
PropertyEditor propertyEditor,
boolean htmlEscape)
Gets the display value of the supplied Object, HTML escaped
as required. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ValueFormatter()
| Method Detail |
|---|
public String getDisplayString(Object value,
boolean htmlEscape)
Object, HTML escaped
as required. This version is not PropertyEditor-aware.
getDisplayString(Object, java.beans.PropertyEditor, boolean)
public String getDisplayString(Object value,
PropertyEditor propertyEditor,
boolean htmlEscape)
Object, HTML escaped
as required. If the supplied value is not a String and the supplied
PropertyEditor is not null then the PropertyEditor is used
to obtain the display value.
getDisplayString(Object, boolean)
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||