org.gswing.components.common.gui
Class ResultTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.gswing.components.common.gui.ResultTableModel
- All Implemented Interfaces:
- Serializable, TableModel
public class ResultTableModel
- extends AbstractTableModel
Table model for a single election result.
- See Also:
- Serialized Form
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultTableModel
public ResultTableModel(Result result)
- Constructor.
- Parameters:
result
- The result to model.
getColumnCount
public int getColumnCount()
- Get the number of columns in the table.
- Returns:
- the number of columns.
getRowCount
public int getRowCount()
- Get the number of rows in the table.
- Returns:
- the number of rows.
getValueAt
public Object getValueAt(int x,
int y)
- Get the value of a cell.
- Parameters:
x
- The x coord.y
- The y coord.
- Returns:
- the number of rows.
Copyright © 2008. All Rights Reserved.