public interface CustomFieldType
Modifier and Type | Method and Description |
---|---|
String |
getDescription(Locale locale)
This method returns a text definition for the custom type.
|
String |
getInputHTML(Object value,
String fieldName,
String namespace,
boolean required,
boolean readonly,
String... params)
This method returns a String that contains the HTML code that will show the input view of the field.
|
String |
getShowHTML(Object value,
String fieldName,
String namespace,
boolean required,
boolean readonly,
String... params)
This method returns a string that contains the HTML code that will be used to show the field value.
|
Object |
getValue(Map requestParameters,
Map requestFiles,
String fieldName,
String namespace,
Object previousValue,
boolean required,
boolean readonly,
String... params)
This method is used to obtain the field value from the submitted form values.
|
String getDescription(Locale locale)
locale
- The current user localeString getShowHTML(Object value, String fieldName, String namespace, boolean required, boolean readonly, String... params)
value
- The current field valuefieldName
- The field namenamespace
- The unique id for the rendered form, it should be used to generate identifiers inside the html code.required
- Determines if the field is required or notreadonly
- Determines if the field must be shown on read only modeparams
- A list of configuration params that can be set on the field configuration screenString getInputHTML(Object value, String fieldName, String namespace, boolean required, boolean readonly, String... params)
value
- The current field valuefieldName
- The field namenamespace
- The unique id for the rendered form, it should be used to generate identifiers inside the html code.required
- Determines if the field is required or notreadonly
- Determines if the field must be shown on read only modeparams
- A list of configuration params that can be set on the field configuration screenObject getValue(Map requestParameters, Map requestFiles, String fieldName, String namespace, Object previousValue, boolean required, boolean readonly, String... params)
requestParameters
- A Map containing the request parameters for the submitted formrequestFiles
- A Map containing the java.io.Files uploaded on the requestfieldName
- The field namenamespace
- The unique id for the rendered form, it should be used to generate identifiers inside the html code.previousValue
- The previous value of the current fieldrequired
- Determines if the field is required or notreadonly
- Determines if the field must be shown on read only modeparams
- A list of configuration params that can be set on the field configuration screenCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.