Class SwingMessageTable.LocationRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, TableCellRenderer
Enclosing class:
SwingMessageTable<D>

protected class SwingMessageTable.LocationRenderer extends DefaultTableCellRenderer
Specialized cell renderer which gets data from the table model, constrcuts the text and sets the cell background color.
See Also:
  • Constructor Details

    • LocationRenderer

      protected LocationRenderer()
  • Method Details

    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSel, boolean hasFoc, int row, int col)
      Called by the Swing framework to render the cell at the given coordinates. All data is retrieved explicitly from the TableModel. (The param "value" is ignored)
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer
      Overrides:
      getTableCellRendererComponent in class DefaultTableCellRenderer
      Parameters:
      row - the row in the current view. Is the same as in the TableModel as long as columns are not re-arranged.
      col - the column in the current view. Is the same as in the TableModel as long as rows are not re-sorted.