net.sf.echobinding.table
Class DefaultDataBoundTableCellRenderer

java.lang.Object
  extended by net.sf.echobinding.table.DefaultDataBoundTableCellRenderer
All Implemented Interfaces:
java.io.Serializable, nextapp.echo2.app.table.TableCellRenderer
Direct Known Subclasses:
EditableTableCellRenderer

public class DefaultDataBoundTableCellRenderer
extends java.lang.Object
implements nextapp.echo2.app.table.TableCellRenderer

A default implementation of a TableCellRenderer for a BoundTable. It renders any table cell value into a data bound label component, containing the property value of the entity object held in the binding context of the specified row.

See Also:
Serialized Form

Constructor Summary
DefaultDataBoundTableCellRenderer()
           
 
Method Summary
protected  Label createLabel(nextapp.echo2.app.Table table, java.lang.Object value, int col, int row)
          Returns a data bound label for the given table index.
 nextapp.echo2.app.Component getTableCellRendererComponent(nextapp.echo2.app.Table table, java.lang.Object value, int col, int row)
          Renders the table cell into a data bound label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataBoundTableCellRenderer

public DefaultDataBoundTableCellRenderer()
Method Detail

getTableCellRendererComponent

public nextapp.echo2.app.Component getTableCellRendererComponent(nextapp.echo2.app.Table table,
                                                                 java.lang.Object value,
                                                                 int col,
                                                                 int row)
Renders the table cell into a data bound label.

Specified by:
getTableCellRendererComponent in interface nextapp.echo2.app.table.TableCellRenderer
Parameters:
table - the table
value - the value
row - the row
col - the col
Returns:
the table cell renderer component

createLabel

protected Label createLabel(nextapp.echo2.app.Table table,
                            java.lang.Object value,
                            int col,
                            int row)
Returns a data bound label for the given table index.

Parameters:
table - the table
value - the value
row - the row
col - the col
Returns:
a data bound label


Copyright © 2007. All Rights Reserved.