public interface WebDatatypeHandler<DT extends CustomDatatype<T>,T> extends HtmlDisplayableDatatypeHandler<T>
CustomDatatypeHandler, which generates the HTML for a widget, and handles the submission of that widget| Modifier and Type | Method and Description |
|---|---|
T |
getValue(DT datatype,
javax.servlet.http.HttpServletRequest request,
java.lang.String formFieldName)
Handles a form submission including a widget generated by this handler
|
java.lang.String |
getWidgetHtml(DT datatype,
java.lang.String formFieldName,
java.lang.String widgetId,
T startingValue)
Generates the HTML for a widget
|
toHtml, toHtmlSummarysetHandlerConfigurationjava.lang.String getWidgetHtml(DT datatype, java.lang.String formFieldName, java.lang.String widgetId, T startingValue)
datatype - the underlying datatype for this widgetformFieldName - the name the widget should submit withwidgetId - a unique id, generated by the web framework, that the widget should usestartingValue - the initial value for the generated HTMLT getValue(DT datatype, javax.servlet.http.HttpServletRequest request, java.lang.String formFieldName) throws InvalidCustomValueException
datatype - the underlying datatype for this widgetrequest - the submitted HTTP requestformFieldName - the same value passed to getWidgetHtml(CustomDatatype, String, String, Object) when generating this widgetInvalidCustomValueExceptionCopyright © 2018 OpenMRS Inc.. All Rights Reserved.