|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
convert(Formatter fmt,
java.util.Map requestSource,
java.util.Map fileSource,
org.w3c.dom.Element domTarget,
java.lang.Object beanTarget)
converts http parameters in requestSource and updates the domTarget and beanTarget. |
void |
convert(Formatter fmt,
java.lang.Object beanSource,
org.w3c.dom.Element domTarget)
updates the domTarget according to the current property values of beanSource |
java.lang.String |
getElementName()
return the element name that this handler will handle |
void |
setElementName(java.lang.String elemName)
|
Method Detail |
public void convert(Formatter fmt, java.util.Map requestSource, java.util.Map fileSource, org.w3c.dom.Element domTarget, java.lang.Object beanTarget) throws ConvertException, FormatException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException
fmt
- Formatter to be used to parse and format user inputrequestSource
- a map containing http parameters. key = String, value = String[]domTarget
- a DOM tree containing UI elements like TextField etc including the following
attributes:
type
the data type, i.e. the id to find the formatter
value
the formatted value will be written to this attribute
formatString
optional, overwrites the default formatString of the FormatHandler
modelReference
optional, if present the attribute name of the bean property.
a jakarta-commons/bean-utils path is supported
id
unique id. Used to identify DOM elements from HTTP Parameters
ConvertException
FormatException
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
public void convert(Formatter fmt, java.lang.Object beanSource, org.w3c.dom.Element domTarget) throws ConvertException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException
ConvertException
java.lang.IllegalAccessException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
public java.lang.String getElementName()
public void setElementName(java.lang.String elemName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |