|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.report.RenderingMode
@Deprecated public class RenderingMode
Represents a mode in which a @see org.openmrs.report.ReportRenderer can run. A simple render like a CSV renderer can probably only render in one mode. A more sophisticated renderer might be able to render multiple modes, which would show up with different labels, and at different weights in a dropdown list. In this case a renderer would use the String argument of this class to determine which mode was selected by the user. A higher sortWeight (i.e. closer to Integer.MAX_VALUE) will typically appear at the top of a select list.
Constructor Summary | |
---|---|
RenderingMode()
Deprecated. |
|
RenderingMode(ReportRenderer renderer,
java.lang.String label,
java.lang.String argument,
java.lang.Integer sortWeight)
Deprecated. |
Method Summary | |
---|---|
int |
compareTo(RenderingMode other)
Deprecated. Higher sortWeight comes first |
java.lang.String |
getArgument()
Deprecated. |
java.lang.String |
getLabel()
Deprecated. |
ReportRenderer |
getRenderer()
Deprecated. |
java.lang.Integer |
getSortWeight()
Deprecated. |
void |
setArgument(java.lang.String argument)
Deprecated. |
void |
setLabel(java.lang.String label)
Deprecated. |
void |
setRenderer(ReportRenderer renderer)
Deprecated. |
void |
setSortWeight(java.lang.Integer sortWeight)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenderingMode()
public RenderingMode(ReportRenderer renderer, java.lang.String label, java.lang.String argument, java.lang.Integer sortWeight)
renderer
- label
- argument
- sortWeight
- Method Detail |
---|
public ReportRenderer getRenderer()
public void setRenderer(ReportRenderer renderer)
public java.lang.String getArgument()
public void setArgument(java.lang.String argument)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.lang.Integer getSortWeight()
public void setSortWeight(java.lang.Integer sortWeight)
public int compareTo(RenderingMode other)
compareTo
in interface java.lang.Comparable<RenderingMode>
Comparable.compareTo(java.lang.Object)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |