|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.tastybug.bugwerk.bugtrail.widget.incident.IncidentTableModel
public class IncidentTableModel
This is the table model of IncidentTable
.
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
protected |
IncidentTableModel(Incident _incident)
Initialises the model, using the content of _incident . |
Method Summary | |
---|---|
Class |
getColumnClass(int c)
Returns always String.class . |
int |
getColumnCount()
Returns 2, as 2 columns are to be displayed (property key/value and respectively attachment/path). |
String |
getColumnName(int col)
Returns an empty string, no column names available yet. |
int |
getRowCount()
Returns the number of properties + number of attachments. |
Object |
getValueAt(int row,
int col)
Returns a cell value. |
boolean |
isEditable()
Returns false . |
void |
update(Incident changedIncident)
Re-reads the incident, as it has changed. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, 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 |
---|
protected IncidentTableModel(Incident _incident)
_incident
.
_incident
- the incidentMethod Detail |
---|
public void update(Incident changedIncident)
changedIncident
- the changed incidentpublic String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
AbstractTableModel.getColumnName(int)
public int getColumnCount()
TableModel.getColumnCount()
public boolean isEditable()
false
.
false
public int getRowCount()
TableModel.getRowCount()
public Object getValueAt(int row, int col)
TableModel.getValueAt(int, int)
public Class getColumnClass(int c)
String.class
.
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
AbstractTableModel.getColumnClass(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |