Package org.openxava.formatters
Class MultipleValuesByPassFormatter
- java.lang.Object
-
- org.openxava.formatters.MultipleValuesByPassFormatter
-
- All Implemented Interfaces:
IMultipleValuesFormatter
public class MultipleValuesByPassFormatter extends java.lang.Object implements IMultipleValuesFormatter
Simply by pass the values from property to html and viceversa.It's useful if you have a property of type String [] and you editor may work with its values directly.
- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description MultipleValuesByPassFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
format(javax.servlet.http.HttpServletRequest request, java.lang.Object object)
From a object return aString []
to render in HTML.java.lang.Object
parse(javax.servlet.http.HttpServletRequest request, java.lang.String[] strings)
From aString []
obtained from a HTTP request return a java object.
-
-
-
Method Detail
-
format
public java.lang.String[] format(javax.servlet.http.HttpServletRequest request, java.lang.Object object) throws java.lang.Exception
Description copied from interface:IMultipleValuesFormatter
From a object return aString []
to render in HTML.- Specified by:
format
in interfaceIMultipleValuesFormatter
- Throws:
java.lang.Exception
-
parse
public java.lang.Object parse(javax.servlet.http.HttpServletRequest request, java.lang.String[] strings) throws java.lang.Exception
Description copied from interface:IMultipleValuesFormatter
From aString []
obtained from a HTTP request return a java object.- Specified by:
parse
in interfaceIMultipleValuesFormatter
- Throws:
java.lang.Exception
-
-