FileDocCategorySizeDatePackage
FixedTextCellRenderer.javaAPI DocExample1569Mon Jul 23 13:26:34 BST 2007org.apache.struts2.components.table.renderer

FixedTextCellRenderer

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.

Fields Summary
protected String
_text
this is the text that will be shown in the column
Constructors Summary
Methods Summary
public java.lang.StringgetCellValue(org.apache.struts2.components.table.WebTable table, java.lang.Object data, int row, int col)



              
        return _text;
    
public java.lang.StringgetText()

        return _text;
    
public voidsetText(java.lang.String text)

        _text = text;