webwork.view.taglib.ui.table.renderer
Class FixedTextCellRenderer
java.lang.Object
webwork.view.taglib.ui.table.renderer.AbstractCellRenderer
webwork.view.taglib.ui.table.renderer.FixedTextCellRenderer
- All Implemented Interfaces:
- CellRenderer
- public class FixedTextCellRenderer
- extends AbstractCellRenderer
usefull if a column has an embeded ID number needed for a link but you want it to
say something else.
Field Summary |
protected java.lang.String |
_text
this is the text that will be shown in the column |
Method Summary |
java.lang.String |
getCellValue(WebTable table,
java.lang.Object data,
int row,
int col)
this is the method that subclasses need to implement to set their value. |
java.lang.String |
getText()
|
void |
setText(java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_text
protected java.lang.String _text
- this is the text that will be shown in the column
FixedTextCellRenderer
public FixedTextCellRenderer()
getCellValue
public java.lang.String getCellValue(WebTable table,
java.lang.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
getText
public java.lang.String getText()
setText
public void setText(java.lang.String text)
Copyright © 2001-2003 WebWork All Rights Reserved.