org.chorem.jtimer.ui.alert
Class AlertTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
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
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 |
columnIdentifiers
protected List<String> columnIdentifiers
- Table column identifiers.
alerts
protected List<TimerAlert> alerts
- Edition alerts list.
AlertTableModel
public AlertTableModel(List<TimerAlert> alerts,
List<String> columnIdentifiers)
- Contructor.
- Parameters:
alerts
- alerts listcolumnIdentifiers
- columns identifiers
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-2010 CodeLutin. All Rights Reserved.