|
||||||||||
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.queue.TicketQueueTableModel
public class TicketQueueTableModel
This is the table model of TicketQueueTable
.
It displays 4 columns: the ticket Id, ticket type, incident count and ticket state.
It is based on a given ticket queue and is not editable.
Field Summary | |
---|---|
protected static String[] |
columns
|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
protected |
TicketQueueTableModel(TicketQueue _ticketQueue)
Creates the model. |
Method Summary | |
---|---|
Class |
getColumnClass(int c)
Returns String.class . |
int |
getColumnCount()
Returns 4. |
String |
getColumnName(int col)
Returns the column name at position col . |
int |
getRowCount()
Returns the number of rows, which is equal to the number of tickets in the connected queue. |
Ticket |
getTicketAt(int rowNumber)
Returns the ticket at row rowNumber . |
Object |
getValueAt(int row,
int col)
Returns a cell value. |
boolean |
isEditable()
Returns false . |
void |
update()
(Re-)reads all tickets from the queue. |
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 |
Field Detail |
---|
protected static final String[] columns
Constructor Detail |
---|
protected TicketQueueTableModel(TicketQueue _ticketQueue)
_ticketQueue
- the connected queueMethod Detail |
---|
public String getColumnName(int col)
col
.
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
AbstractTableModel.getColumnName(int)
public void update()
public int getColumnCount()
TableModel.getColumnCount()
public boolean isEditable()
false
.
false
public int getRowCount()
TableModel.getRowCount()
public Ticket getTicketAt(int rowNumber)
rowNumber
.
rowNumber
- the rowNumber
null
, if rowNumber exceeds the number of ticketspublic 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 |