Home » struts-2.1.8.1-src » org.apache » struts2 » components » table » renderer » [javadoc | source]
org.apache.struts2.components.table.renderer
public class: NumericCellRenderer [javadoc | source]
java.lang.Object
   org.apache.struts2.components.table.renderer.AbstractCellRenderer
      org.apache.struts2.components.table.renderer.NumericCellRenderer

All Implemented Interfaces:
    CellRenderer

Field Summary
 DecimalFormat _formater     
 String _formatString    this is the format string that DecimalFormat would use. 
 String _negativeColor    if set the is the color to use if Number is negative. 
 String _positiveColor    if set this is the color to render if number is positive 
Fields inherited from org.apache.struts2.components.table.renderer.AbstractCellRenderer:
_alignment
Constructor:
 public NumericCellRenderer() 
Method from org.apache.struts2.components.table.renderer.NumericCellRenderer Summary:
getCellValue,   processNumber,   setFormatString,   setNegativeColor,   setPositiveColor
Methods from org.apache.struts2.components.table.renderer.AbstractCellRenderer:
getAlignment,   getCellValue,   isAligned,   renderCell,   setAlignment
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.components.table.renderer.NumericCellRenderer Detail:
 public String getCellValue(WebTable table,
    Object data,
    int row,
    int col) 
 protected  void processNumber(StringBuffer buf,
    String color,
    double cellValue) 
 public  void setFormatString(String format) 
 public  void setNegativeColor(String color) 
 public  void setPositiveColor(String color)