Class WhatIfPanel.ClassTable

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable
Enclosing class:
WhatIfPanel

protected class WhatIfPanel.ClassTable extends JTable
This table is used to display informations on customer class (like population, arrival rates and betas)
Author:
Bertoli Marco Date: 26-mag-2006 Time: 13.48.45
See Also:
  • Constructor Details

    • ClassTable

      public ClassTable()
      Creates a new ClassTable with a ClassTableModel
  • Method Details

    • update

      public void update()
      This method must be called each time analysis type or selected class is changed
    • prepareRenderer

      public Component prepareRenderer(TableCellRenderer renderer, int row, int column)
      Prepares the renderer by querying the data model for the value and selection state of the cell at row, column. Returns the component (may be a Component or a JComponent) under the event location.

      This paints in red elements of selected classes

      Overrides:
      prepareRenderer in class JTable
      Parameters:
      renderer - the TableCellRenderer to prepare
      row - the row of the cell to render, where 0 is the first row
      column - the column of the cell to render, where 0 is the first column
      Returns:
      the Component under the event location