Package | Description |
---|---|
org.openmrs |
These classes represent the core domain objects for the OpenMRS project.
|
org.openmrs.api |
The primary OpenMRS API interfaces.
|
org.openmrs.api.impl | |
org.openmrs.customdatatype | |
org.openmrs.customdatatype.datatype | |
org.openmrs.web.attribute | |
org.openmrs.web.attribute.handler |
Constructor and Description |
---|
GlobalProperty(java.lang.String property,
java.lang.String value,
java.lang.String description,
java.lang.Class<? extends CustomDatatype<?>> datatypeClass,
java.lang.String datatypeConfig)
Constructor defining key/value/description/customDatatype/datatypeConfig
|
Modifier and Type | Method and Description |
---|---|
<T extends CustomDatatype<?>> |
DatatypeService.getDatatype(java.lang.Class<T> clazz,
java.lang.String config) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Class<? extends CustomDatatype<?>>> |
DatatypeService.getAllDatatypeClasses() |
Modifier and Type | Method and Description |
---|---|
CustomDatatypeHandler<?,?> |
DatatypeService.getHandler(CustomDatatype<?> datatype,
java.lang.String handlerConfig)
Gets the default handler for a
CustomDatatype , and sets its configuration
TODO probably remove the config argument since it doesn't make sense to let people provide handlerConfig to the default handler. |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Class<? extends CustomDatatypeHandler>> |
DatatypeService.getHandlerClasses(java.lang.Class<? extends CustomDatatype<?>> datatypeClass) |
Modifier and Type | Method and Description |
---|---|
<T extends CustomDatatype<?>> |
DatatypeServiceImpl.getDatatype(java.lang.Class<T> clazz,
java.lang.String config) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Class<? extends CustomDatatype<?>>> |
DatatypeServiceImpl.getAllDatatypeClasses() |
Modifier and Type | Method and Description |
---|---|
CustomDatatypeHandler<?,?> |
DatatypeServiceImpl.getHandler(CustomDatatype<?> datatype,
java.lang.String handlerConfig) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Class<? extends CustomDatatypeHandler>> |
DatatypeServiceImpl.getHandlerClasses(java.lang.Class<? extends CustomDatatype<?>> datatype) |
Modifier and Type | Interface and Description |
---|---|
interface |
CustomDatatypeHandler<DT extends CustomDatatype<T>,T>
Subclasses of this interface represent different ways of building UI widgets to handle
CustomDatatype s. |
Modifier and Type | Class and Description |
---|---|
class |
SerializingCustomDatatype<T> |
Modifier and Type | Method and Description |
---|---|
static CustomDatatype<?> |
CustomDatatypeUtil.getDatatype(CustomValueDescriptor descriptor) |
static CustomDatatype<?> |
CustomDatatypeUtil.getDatatype(java.lang.String datatypeClassname,
java.lang.String datatypeConfig) |
static CustomDatatype<?> |
CustomDatatypeUtil.getDatatypeOrDefault(CustomValueDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
DownloadableDatatypeHandler.getContentType(CustomDatatype<T> dt,
java.lang.String valueReference) |
java.lang.String |
DownloadableDatatypeHandler.getFilename(CustomDatatype<T> dt,
java.lang.String valueReference) |
static CustomDatatypeHandler |
CustomDatatypeUtil.getHandler(CustomDatatype<?> dt,
java.lang.String preferredHandlerClassname,
java.lang.String handlerConfig) |
static boolean |
CustomDatatypeUtil.isCompatibleHandler(CustomDatatypeHandler handler,
CustomDatatype<?> datatype) |
void |
DownloadableDatatypeHandler.writeToStream(CustomDatatype<T> dt,
java.lang.String valueReference,
java.io.OutputStream os)
Writes the custom value to os.
|
Modifier and Type | Class and Description |
---|---|
class |
BooleanDatatype
Datatype for boolean, represented by java.lang.Boolean.
|
class |
DateDatatype
Datatype for a Date (without time), represented by a java.util.Date.
|
class |
FreeTextDatatype
Free-text datatype, represented by a plain String.
|
class |
LongFreeTextDatatype
Free-text datatype, represented by a plain String in Java, but stored in the
database as a CLOB or similar.
|
class |
RegexValidatedTextDatatype
Datatype for a String that is validated against a regular expression
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
WebAttributeUtil.getValue(javax.servlet.http.HttpServletRequest request,
CustomDatatype<T> dt,
CustomDatatypeHandler<CustomDatatype<T>,T> handler,
java.lang.String paramName)
Gets the value of an attribute out of an HTTP request, treating it according to the appropriate handler type.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
WebAttributeUtil.getValue(javax.servlet.http.HttpServletRequest request,
CustomDatatype<T> dt,
CustomDatatypeHandler<CustomDatatype<T>,T> handler,
java.lang.String paramName)
Gets the value of an attribute out of an HTTP request, treating it according to the appropriate handler type.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FieldGenDatatypeHandler<DT extends CustomDatatype<T>,T>
A web-layer extension of a
CustomDatatypeHandler , which also defines what fieldgen widget is used to
collect the values, and how to fetch them from a web request. |
interface |
WebDatatypeHandler<DT extends CustomDatatype<T>,T>
A web-layer extension of
CustomDatatypeHandler , which generates the HTML for a widget, and handles the submission of that widget |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
LongFreeTextTextareaHandler.getContentType(CustomDatatype<java.lang.String> dt,
java.lang.String valueReference) |
java.lang.String |
LongFreeTextFileUploadHandler.getContentType(CustomDatatype<java.lang.String> dt,
java.lang.String valueReference) |
java.lang.String |
LongFreeTextTextareaHandler.getFilename(CustomDatatype<java.lang.String> dt,
java.lang.String valueReference) |
java.lang.String |
LongFreeTextFileUploadHandler.getFilename(CustomDatatype<java.lang.String> dt,
java.lang.String valueReference) |
java.lang.String |
BooleanFieldGenDatatypeHandler.toHtml(CustomDatatype<java.lang.Boolean> datatype,
java.lang.String valueReference) |
java.lang.String |
DateFieldGenDatatypeHandler.toHtml(CustomDatatype<java.util.Date> datatype,
java.lang.String valueReference) |
java.lang.String |
LongFreeTextTextareaHandler.toHtml(CustomDatatype<java.lang.String> datatype,
java.lang.String valueReference) |
java.lang.String |
LongFreeTextFileUploadHandler.toHtml(CustomDatatype<java.lang.String> datatype,
java.lang.String valueReference) |
java.lang.String |
HtmlDisplayableDatatypeHandler.toHtml(CustomDatatype<T> datatype,
java.lang.String valueReference)
Renders the full view of a custom value, as HTML.
|
CustomDatatype.Summary |
BooleanFieldGenDatatypeHandler.toHtmlSummary(CustomDatatype<java.lang.Boolean> datatype,
java.lang.String valueReference) |
CustomDatatype.Summary |
DateFieldGenDatatypeHandler.toHtmlSummary(CustomDatatype<java.util.Date> datatype,
java.lang.String valueReference) |
CustomDatatype.Summary |
LongFreeTextTextareaHandler.toHtmlSummary(CustomDatatype<java.lang.String> datatype,
java.lang.String valueReference) |
CustomDatatype.Summary |
LongFreeTextFileUploadHandler.toHtmlSummary(CustomDatatype<java.lang.String> datatype,
java.lang.String valueReference) |
CustomDatatype.Summary |
HtmlDisplayableDatatypeHandler.toHtmlSummary(CustomDatatype<T> datatype,
java.lang.String valueReference)
Renders an HTML-formatted summary view of the custom value, that does not take a lot of space.
|
void |
LongFreeTextTextareaHandler.writeToStream(CustomDatatype<java.lang.String> dt,
java.lang.String valueReference,
java.io.OutputStream os) |
void |
LongFreeTextFileUploadHandler.writeToStream(CustomDatatype<java.lang.String> dt,
java.lang.String valueReference,
java.io.OutputStream os) |
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.