|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.tastybug.bugwerk.bugtrail.widget.ticket.TicketTableModel
public class TicketTableModel
Models the content of TicketTable.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
protected |
TicketTableModel(Ticket _ticket)
Creates the model upon the given ticket. |
| Method Summary | |
|---|---|
Class |
getColumnClass(int c)
Returns String.class. |
int |
getColumnCount()
Returns 2; |
String |
getColumnName(int col)
Returns an empty string, no column headers used. |
int |
getRowCount()
Returns the number of present base properties. |
Object |
getValueAt(int row,
int col)
Returns a table cell value. |
boolean |
isEditable()
Returns false, the table is not editable. |
void |
update(Ticket changedTicket)
Re-reads the ticket, 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 TicketTableModel(Ticket _ticket)
_ticket - the ticket that is to be displayed| Method Detail |
|---|
public void update(Ticket changedTicket)
changedTicket - the changed ticketpublic String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelAbstractTableModel.getColumnName(int)public int getColumnCount()
TableModel.getColumnCount()public boolean isEditable()
false, the table is not editable.
falsepublic 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 TableModelgetColumnClass in class AbstractTableModelAbstractTableModel.getColumnClass(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||