net.sf.doolin.gui.field.table.renderer
Class GUITableCellRenderer<E>

java.lang.Object
  extended by net.sf.doolin.gui.field.table.renderer.GUITableCellRenderer<E>
Type Parameters:
E - Type of item in the table
All Implemented Interfaces:
TableCellRenderer

public class GUITableCellRenderer<E>
extends Object
implements TableCellRenderer

This table renderer is used as an ancestor for all renderers that want to interact with a style defined at table level.

Author:
Damien Coraboeuf

Constructor Summary
GUITableCellRenderer(TableCellRenderer renderer)
          Instantiates a new gUI table cell renderer.
 
Method Summary
protected  void applyStyle(Component component, JTable table, int row, int column)
          Applies style.
 Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUITableCellRenderer

public GUITableCellRenderer(TableCellRenderer renderer)
Instantiates a new gUI table cell renderer.

Parameters:
renderer - the renderer
Method Detail

applyStyle

protected void applyStyle(Component component,
                          JTable table,
                          int row,
                          int column)
Applies style.

Parameters:
component - the component
table - the table
row - the row
column - the column

getTableCellRendererComponent

public Component getTableCellRendererComponent(JTable table,
                                               Object value,
                                               boolean isSelected,
                                               boolean hasFocus,
                                               int row,
                                               int column)

Specified by:
getTableCellRendererComponent in interface TableCellRenderer


Copyright © 2011. All Rights Reserved.