Class DataSourcePanelJDBC.ResultsTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel
    Enclosing class:
    DataSourcePanelJDBC

    public class DataSourcePanelJDBC.ResultsTableModel
    extends javax.swing.table.AbstractTableModel
    An inner class for the results.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumnCount()
      Returns the number of columns in dataset.
      java.lang.String getColumnName​(int col)
      Returns the name of the column at given index.
      int getRowCount()
      Returns the number of rows in dataset.
      java.lang.Object getValueAt​(int row, int col)
      Returns the value for the given row & column.
      • Methods inherited from class javax.swing.table.AbstractTableModel

        addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResultsTableModel

        public ResultsTableModel()
    • Method Detail

      • getRowCount

        public int getRowCount()
        Returns the number of rows in dataset.
      • getColumnCount

        public int getColumnCount()
        Returns the number of columns in dataset.
      • getColumnName

        public java.lang.String getColumnName​(int col)
        Returns the name of the column at given index.
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel
      • getValueAt

        public java.lang.Object getValueAt​(int row,
                                           int col)
        Returns the value for the given row & column.