public interface FieldGenDatatypeHandler<DT extends CustomDatatype<T>,T> extends HtmlDisplayableDatatypeHandler<T>
CustomDatatypeHandler
, which also defines what fieldgen widget is used to
collect the values, and how to fetch them from a web request.Modifier and Type | Method and Description |
---|---|
T |
getValue(DT datatype,
javax.servlet.http.HttpServletRequest request,
java.lang.String formFieldName)
Fetches an attribute value from a web request, for a given form field name
|
java.util.Map<java.lang.String,java.lang.Object> |
getWidgetConfiguration() |
java.lang.String |
getWidgetName() |
toHtml, toHtmlSummary
setHandlerConfiguration
java.lang.String getWidgetName()
java.util.Map<java.lang.String,java.lang.Object> getWidgetConfiguration()
T getValue(DT datatype, javax.servlet.http.HttpServletRequest request, java.lang.String formFieldName) throws InvalidCustomValueException
datatype
- request
- formFieldName
- InvalidAttributeValueException
- if the submitted value is invalidInvalidCustomValueException
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.