Package mgui.interfaces.queries.tables
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 queriedvoid
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
-
-
Method Details
-
setResult
-
objectQueried
Description copied from interface:QueryListener
Informs this listener that an object has been queried- Specified by:
objectQueried
in interfaceQueryListener
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
-
getValueAt
public java.lang.Object getValueAt(int row, int column)- Specified by:
getValueAt
in interfacejavax.swing.table.TableModel
-
getColumnName
public java.lang.String getColumnName(int column)- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-