org.apache.struts2.components.table.renderer
Class BooleanCellRenderer

java.lang.Object
  extended by org.apache.struts2.components.table.renderer.AbstractCellRenderer
      extended by org.apache.struts2.components.table.renderer.BooleanCellRenderer
All Implemented Interfaces:
CellRenderer

public class BooleanCellRenderer
extends AbstractCellRenderer


Field Summary
protected  String _falseValue
          value used if the boolean object is false
protected  String _trueValue
          value used if the boolean object is true
 
Fields inherited from class org.apache.struts2.components.table.renderer.AbstractCellRenderer
_alignment
 
Constructor Summary
BooleanCellRenderer()
           
 
Method Summary
 String getCellValue(WebTable table, Object data, int row, int col)
          this is the method that subclasses need to implement to set their value.
 void setFalseValue(String falseValue)
           
 void setTrueValue(String trueValue)
           
 
Methods inherited from class org.apache.struts2.components.table.renderer.AbstractCellRenderer
getAlignment, isAligned, renderCell, setAlignment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_falseValue

protected String _falseValue
value used if the boolean object is false


_trueValue

protected String _trueValue
value used if the boolean object is true

Constructor Detail

BooleanCellRenderer

public BooleanCellRenderer()
Method Detail

getCellValue

public String getCellValue(WebTable table,
                           Object data,
                           int row,
                           int col)
Description copied from class: AbstractCellRenderer
this is the method that subclasses need to implement to set their value. they should not override renderCell unless they want to change the alignmnent renderering

Specified by:
getCellValue in class AbstractCellRenderer

setFalseValue

public void setFalseValue(String falseValue)

setTrueValue

public void setTrueValue(String trueValue)


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.