public interface FieldHandler
Modifier and Type | Method and Description |
---|---|
String[] |
getCompatibleClassNames()
Determine the list of class names this field can generate.
|
String |
getPageToIncludeForDisplaying()
When rendering a form, if field is handled by this handler, determine the
page that renders the displaying of the value
|
String |
getPageToIncludeForRendering()
When rendering a form, if field is handled by this handler, determine the
page that renders the input(s)
|
Map |
getParamValue(Field field,
String inputName,
Object objectValue)
Determine the value as a parameter map for a given input value.
|
Object |
getValue(Field field,
String inputName,
Map parametersMap,
Map filesMap,
String desiredClassName,
Object previousValue)
Read a parameter value (normally from a request), and translate it to
an object with desired class (that must be one of the returned by this handler)
|
boolean |
isEmpty(Object value)
Determine if supplied value is empty
|
String[] getCompatibleClassNames()
Object getValue(Field field, String inputName, Map parametersMap, Map filesMap, String desiredClassName, Object previousValue) throws Exception
Exception
Map getParamValue(Field field, String inputName, Object objectValue)
objectValue
- Object value to representfield
- field definitionString getPageToIncludeForRendering()
String getPageToIncludeForDisplaying()
boolean isEmpty(Object value)
value
- Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.