org.openmrs.report
Class RenderingMode

java.lang.Object
  extended by org.openmrs.report.RenderingMode
All Implemented Interfaces:
java.lang.Comparable<RenderingMode>

Deprecated. see reportingcompatibility module

@Deprecated
public class RenderingMode
extends java.lang.Object
implements java.lang.Comparable<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

RenderingMode

public RenderingMode()
Deprecated. 

RenderingMode

public RenderingMode(ReportRenderer renderer,
                     java.lang.String label,
                     java.lang.String argument,
                     java.lang.Integer sortWeight)
Deprecated. 
Parameters:
renderer -
label -
argument -
sortWeight -
Method Detail

getRenderer

public ReportRenderer getRenderer()
Deprecated. 

setRenderer

public void setRenderer(ReportRenderer renderer)
Deprecated. 

getArgument

public java.lang.String getArgument()
Deprecated. 

setArgument

public void setArgument(java.lang.String argument)
Deprecated. 

getLabel

public java.lang.String getLabel()
Deprecated. 

setLabel

public void setLabel(java.lang.String label)
Deprecated. 

getSortWeight

public java.lang.Integer getSortWeight()
Deprecated. 

setSortWeight

public void setSortWeight(java.lang.Integer sortWeight)
Deprecated. 

compareTo

public int compareTo(RenderingMode other)
Deprecated. 
Higher sortWeight comes first

Specified by:
compareTo in interface java.lang.Comparable<RenderingMode>
See Also:
Comparable.compareTo(java.lang.Object)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change