com.opensymphony.webwork.components.table.renderer
Class BooleanCellRenderer
java.lang.Object
com.opensymphony.webwork.components.table.renderer.AbstractCellRenderer
com.opensymphony.webwork.components.table.renderer.BooleanCellRenderer
- All Implemented Interfaces:
- CellRenderer
public class BooleanCellRenderer
- extends AbstractCellRenderer
- Version:
- $Revision: 1282 $
- Author:
- $author$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_falseValue
protected String _falseValue
- value used if the boolean object is false
_trueValue
protected String _trueValue
- value used if the boolean object is true
BooleanCellRenderer
public BooleanCellRenderer()
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)