org.gswing.components.common.gui
Class ResultTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by 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

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ResultTableModel(Result result)
          Constructor.
 
Method Summary
 int getColumnCount()
          Get the number of columns in the table.
 int getRowCount()
          Get the number of rows in the table.
 Object getValueAt(int x, int y)
          Get the value of a cell.
 
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
 

Constructor Detail

ResultTableModel

public ResultTableModel(Result result)
Constructor.

Parameters:
result - The result to model.
Method Detail

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.