Interface Table.CellRepresentationStrategy<V>

Type Parameters:
V - The type of value the strategy is to represent.
All Known Implementing Classes:
CalendarControl.DayRepresentationStrategy, Table.DefaultCellRepresentationStrategy
Enclosing class:
Table

public static interface Table.CellRepresentationStrategy<V>
A strategy for generating components to represent table cell model values.
Author:
Garret Wilson
  • Method Summary

    Modifier and Type
    Method
    Description
    <C extends V>
    Component
    createComponent(Table table, TableModel model, int rowIndex, TableColumnModel<C> column, boolean editable, boolean selected, boolean focused)
    Creates a component to represent the given cell.
  • Method Details

    • createComponent

      <C extends V> Component createComponent(Table table, TableModel model, int rowIndex, TableColumnModel<C> column, boolean editable, boolean selected, boolean focused)
      Creates a component to represent the given cell.
      Type Parameters:
      C - The type of value contained in the column.
      Parameters:
      table - The component containing the model.
      model - The model containing the value.
      rowIndex - The zero-based row index of the value.
      column - The column of the value.
      editable - Whether values in this column are editable.
      selected - true if the value is selected.
      focused - true if the value has the focus.
      Returns:
      A new component to represent the given value.