public class WebMediaHandler extends MediaHandler
MediaHandler
for web specific views.log
longfmt, nf
HTML_VIEW, PREVIEW_VIEW, RAW_VIEW, TEXT_VIEW, TITLE_VIEW, URI_VIEW
Constructor and Description |
---|
WebMediaHandler()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
Obs |
getObs(Obs obs,
String view)
Returns the ComplexData for an Obs depending on the view.
|
String[] |
getSupportedViews()
Supported views getter
|
saveObs
getComplexDataFile, getExtension, getOutputFileToWrite, purgeComplexData, supportsView
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
purgeComplexData, supportsView
public Obs getObs(Obs obs, String view)
org.openmrs.web.WebConstants#HYPERLINK_VIEW
: a lightweight alternative to returning the
ComplexData from the parent class since this does not require access to the service layer.
Gives a link to the ComplexServlet for this obs
org.openmrs.web.WebConstants#HTML_VIEW
: An html tag that will display this complex data. For this
MediaHandler, its an html5 audio or video tag.
getObs
in interface ComplexObsHandler
getObs
in class MediaHandler
obs
- an obs without complex data filled inview
- nullable view type. This is defined by the ui and view/handlerMediaHandler.getObs(org.openmrs.Obs, java.lang.String)
public String[] getSupportedViews()
ComplexObsHandler
getSupportedViews
in interface ComplexObsHandler
getSupportedViews
in class MediaHandler
ComplexObsHandler.getSupportedViews()
Copyright © 2015 OpenMRS Inc.. All rights reserved.