org.chorem.jtimer.ui.alert
Class AlertTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.chorem.jtimer.ui.alert.AlertTableModel
All Implemented Interfaces:
Serializable, TableModel

public class AlertTableModel
extends AbstractTableModel

Table model for alerts.

Version:
$Revision: 1.0 $ Last update : $Date: 6 juil. 2009 $ By : $Author: chatellier $
Author:
chatellier
See Also:
Serialized Form

Field Summary
protected  List<TimerAlert> alerts
          Edition alerts list.
protected  List<String> columnIdentifiers
          Table column identifiers.
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AlertTableModel(List<TimerAlert> alerts, List<String> columnIdentifiers)
          Contructor.
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int column)
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void setValueAt(Object value, int rowIndex, int columnIndex)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnIdentifiers

protected List<String> columnIdentifiers
Table column identifiers.


alerts

protected List<TimerAlert> alerts
Edition alerts list.

Constructor Detail

AlertTableModel

public AlertTableModel(List<TimerAlert> alerts,
                       List<String> columnIdentifiers)
Contructor.

Parameters:
alerts - alerts list
columnIdentifiers - columns identifiers
Method Detail

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getRowCount

public int getRowCount()

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

setValueAt

public void setValueAt(Object value,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel


Copyright © 2007-2009 CodeLutin. All Rights Reserved.