Class DefaultGTrableCellRenderer<T>

Type Parameters:
T - the data model row object type
All Implemented Interfaces:
GTrableCellRenderer<T>, ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, TableCellRenderer

public class DefaultGTrableCellRenderer<T> extends DefaultTableCellRenderer implements GTrableCellRenderer<T>
Base class for GTrable cell renderers.
See Also:
  • Constructor Details

    • DefaultGTrableCellRenderer

      public DefaultGTrableCellRenderer()
  • Method Details

    • getCellRenderer

      public Component getCellRenderer(GTrable<?> trable, T value, boolean isSelected, boolean hasFocus, int row, int column)
      Description copied from interface: GTrableCellRenderer
      Gets and prepares the renderer component for the given column value
      Specified by:
      getCellRenderer in interface GTrableCellRenderer<T>
      Parameters:
      trable - the GTrable
      value - the column value
      isSelected - true if the row is selected
      hasFocus - true if the cell has focus
      row - the row of the cell being painted
      column - the column of the cell being painted
      Returns:
      the component to use to paint the cell value