com.sptci.echo2
Class Controller.LinkedCellRenderer

java.lang.Object
  extended by com.sptci.echo2.Controller.LinkedCellRenderer
All Implemented Interfaces:
Serializable, TableCellRenderer
Enclosing class:
Controller<V>

public class Controller.LinkedCellRenderer
extends Object
implements TableCellRenderer

A custom table cell renderer used to present the cell data as hyper linked.

See Also:
Serialized Form

Field Summary
private  ActionListener listener
          The action listener to use for the cell data.
 
Constructor Summary
Controller.LinkedCellRenderer(ActionListener listener)
          Create a new instance of the rendered using the specified action listener
 
Method Summary
 Component getTableCellRendererComponent(Table table, Object value, int column, int row)
          Return the hyperlinked button with appropriate action listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

private ActionListener listener
The action listener to use for the cell data.

Constructor Detail

Controller.LinkedCellRenderer

public Controller.LinkedCellRenderer(ActionListener listener)
Create a new instance of the rendered using the specified action listener

Parameters:
listener - The action listener to use for the cell data.
Method Detail

getTableCellRendererComponent

public Component getTableCellRendererComponent(Table table,
                                               Object value,
                                               int column,
                                               int row)
Return the hyperlinked button with appropriate action listener

Specified by:
getTableCellRendererComponent in interface TableCellRenderer