Class GridDataTable

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

public class GridDataTable extends JTable implements ActionListener
See Also:
  • Constructor Details

    • GridDataTable

      public GridDataTable(GridData griddata, int component)
      Constructor GridDataTable
      Parameters:
      griddata -
      component -
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      Performs the action for the refresh timer by refreshing the data in the DataTable.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      evt -
    • refreshTable

      public void refreshTable()
      Refresh the data in the DataTable, as well as other changes to the table, such as row number visibility. Changes to the TableModels displayed in the table will not be visible until this method is called.
    • getCellRenderer

      public TableCellRenderer getCellRenderer(int row, int column)
      Returns an appropriate renderer for the cell specified by this row and column. If the TableColumn for this column has a non-null renderer, returns that. If the TableColumn for this column has the same name as a name specified in the setMaximumFractionDigits method, returns the appropriate renderer. If not, finds the class of the data in this column (using getColumnClass) and returns the default renderer for this type of data.
      Overrides:
      getCellRenderer in class JTable
      Parameters:
      row - Description of Parameter
      column - Description of Parameter
      Returns:
      The cellRenderer value