Interface GTableAccess

All Known Implementing Classes:
AbstractDataTypeTableCellEditor

public interface GTableAccess
Provides public access to the unwrapped table model of a GTable
  • Method Summary

    Modifier and Type
    Method
    Description
    default TableModel
    Returns the unwrapped table model of the given table.
  • Method Details

    • getUnwrappedModel

      default TableModel getUnwrappedModel(JTable table)
      Returns the unwrapped table model of the given table.

      If the given table is a plain JTable, then this merely delegates to JTable.getModel(). However, if the table happens to be a GTable, then this will invoke the otherwise-protected GTable.getUnwrappedTableModel(). This is both a utility and a means to access a protected method of GTable.

      Parameters:
      table - the table whose model to get
      Returns:
      the unwrapped table model of the given table