Class QueryResultTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
mgui.interfaces.queries.tables.QueryResultTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel, QueryListener

public class QueryResultTableModel
extends javax.swing.table.AbstractTableModel
implements QueryListener
Table model for QueryResultTable.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class javax.swing.table.AbstractTableModel

    listenerList
  • Constructor Summary

    Constructors
    Constructor Description
    QueryResultTableModel​(QueryResult result)  
  • Method Summary

    Modifier and Type Method Description
    int getColumnCount()  
    java.lang.String getColumnName​(int column)  
    int getRowCount()  
    java.lang.Object getValueAt​(int row, int column)  
    void objectQueried​(QueryEvent e)
    Informs this listener that an object has been queried
    void setResult​(QueryResult result)  

    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 Details

    • QueryResultTableModel

      public QueryResultTableModel​(QueryResult result)
  • Method Details

    • setResult

      public void setResult​(QueryResult result)
    • objectQueried

      public void objectQueried​(QueryEvent e)
      Description copied from interface: QueryListener
      Informs this listener that an object has been queried
      Specified by:
      objectQueried in interface QueryListener
    • getColumnCount

      public int getColumnCount()
      Specified by:
      getColumnCount in interface javax.swing.table.TableModel
    • getRowCount

      public int getRowCount()
      Specified by:
      getRowCount in interface javax.swing.table.TableModel
    • getValueAt

      public java.lang.Object getValueAt​(int row, int column)
      Specified by:
      getValueAt in interface javax.swing.table.TableModel
    • getColumnName

      public java.lang.String getColumnName​(int column)
      Specified by:
      getColumnName in interface javax.swing.table.TableModel
      Overrides:
      getColumnName in class javax.swing.table.AbstractTableModel