@Component public class BooleanFieldGenDatatypeHandler extends java.lang.Object implements FieldGenDatatypeHandler<BooleanDatatype,java.lang.Boolean>
Constructor and Description |
---|
BooleanFieldGenDatatypeHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getValue(BooleanDatatype 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() |
void |
setHandlerConfiguration(java.lang.String arg0)
An
AttributeType will typically be configured with a handler and a configuration. |
java.lang.String |
toHtml(CustomDatatype<java.lang.Boolean> datatype,
java.lang.String valueReference)
Renders the full view of a custom value, as HTML.
|
CustomDatatype.Summary |
toHtmlSummary(CustomDatatype<java.lang.Boolean> datatype,
java.lang.String valueReference)
Renders an HTML-formatted summary view of the custom value, that does not take a lot of space.
|
public void setHandlerConfiguration(java.lang.String arg0)
CustomDatatypeHandler
AttributeType
will typically be configured with a handler and a configuration. The framework
takes care of constructing a handler, and setting its configuration (if any)setHandlerConfiguration
in interface CustomDatatypeHandler<CustomDatatype<java.lang.Boolean>,java.lang.Boolean>
CustomDatatypeHandler.setHandlerConfiguration(java.lang.String)
public java.lang.String getWidgetName()
getWidgetName
in interface FieldGenDatatypeHandler<BooleanDatatype,java.lang.Boolean>
FieldGenDatatypeHandler.getWidgetName()
public java.util.Map<java.lang.String,java.lang.Object> getWidgetConfiguration()
getWidgetConfiguration
in interface FieldGenDatatypeHandler<BooleanDatatype,java.lang.Boolean>
FieldGenDatatypeHandler.getWidgetConfiguration()
public java.lang.Boolean getValue(BooleanDatatype datatype, javax.servlet.http.HttpServletRequest request, java.lang.String formFieldName) throws InvalidCustomValueException
FieldGenDatatypeHandler
getValue
in interface FieldGenDatatypeHandler<BooleanDatatype,java.lang.Boolean>
InvalidCustomValueException
FieldGenDatatypeHandler.getValue(org.openmrs.customdatatype.CustomDatatype, javax.servlet.http.HttpServletRequest, java.lang.String)
public CustomDatatype.Summary toHtmlSummary(CustomDatatype<java.lang.Boolean> datatype, java.lang.String valueReference)
HtmlDisplayableDatatypeHandler
toHtmlSummary
in interface HtmlDisplayableDatatypeHandler<java.lang.Boolean>
HtmlDisplayableDatatypeHandler.toHtmlSummary(org.openmrs.customdatatype.CustomDatatype, java.lang.String)
public java.lang.String toHtml(CustomDatatype<java.lang.Boolean> datatype, java.lang.String valueReference)
HtmlDisplayableDatatypeHandler
toHtml
in interface HtmlDisplayableDatatypeHandler<java.lang.Boolean>
HtmlDisplayableDatatypeHandler.toHtml(org.openmrs.customdatatype.CustomDatatype, java.lang.String)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.