public class OutstandingMessageTableModel extends javax.swing.table.AbstractTableModel implements ColumnSizingTableModel, SendableMessageListener, FastComparableTableModel
Modifier and Type | Method and Description |
---|---|
int |
compareRows(int rowIndex1,
int rowIndex2,
int columnIndex)
Compare the selected column of the two rows.
|
void |
deleteOutgoingMessage(int index,
SendableMessage sendableMessage,
boolean isGuiDispatchThread)
Report that a message has been deleted from the outgoing retransmitted
message list.
|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns the Class of the column's values.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the name for the column.
|
int |
getColumnWidth(int columnIndex)
Specifies the default initial width of a column from this model.
|
static OutstandingMessageTableModel |
getInstance()
Get the OutstandingMessageTableModel instance.
|
int |
getRowCount()
Returns the number of rows in the model.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex . |
void |
insertOutgoingMessage(int index,
boolean isGuiDispatchThread)
Report that a new message has been added to the outgoing retransmitted
message list.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true if the cell at
rowIndex and
columnIndex
is editable. |
boolean |
isSizeToFit(int columnIndex)
Specifies whether setWidthToFit() should be enabled on this column
|
static void |
showOutstandingTable()
Display the OutstandingMessage table window.
|
void |
updateOutgoingMessage(int index,
boolean isGuiDispatchThread)
Report that an existing message has been updated in the outgoing retransmitted
message list.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
public int getRowCount()
JTable
uses this method to determine how many rows it
should display. This method should be quick, as it
is called frequently during rendering.getRowCount
in interface javax.swing.table.TableModel
getColumnCount()
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
getRowCount()
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column being queriedcolumn
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- the column being queriedpublic java.lang.Object getValueAt(int rowIndex, int columnIndex)
columnIndex
and
rowIndex
.getValueAt
in interface javax.swing.table.TableModel
rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queriedpublic int compareRows(int rowIndex1, int rowIndex2, int columnIndex)
compareRows
in interface FastComparableTableModel
rowIndex1
- zero-based model row index of first row to comparerowIndex2
- zero-based model row index of second row to comparecolumnIndex
- zero-based model column index of column to comparepublic boolean isCellEditable(int rowIndex, int columnIndex)
rowIndex
and
columnIndex
is editable. Otherwise, setValueAt
on the cell will not
change the value of that cell.isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- the row whose value to be queriedcolumnIndex
- the column whose value to be queriedAbstractTableModel.setValueAt(java.lang.Object, int, int)
public int getColumnWidth(int columnIndex)
getColumnWidth
in interface ColumnSizingTableModel
columnIndex
- int index of the model's column whose width should be obtainedpublic boolean isSizeToFit(int columnIndex)
isSizeToFit
in interface ColumnSizingTableModel
columnIndex
- int index of the model's column whose width should be obtainedpublic static void showOutstandingTable()
public static OutstandingMessageTableModel getInstance()
public void insertOutgoingMessage(int index, boolean isGuiDispatchThread)
insertOutgoingMessage
in interface SendableMessageListener
index
- position of message in the list.isGuiDispatchThread
- boolean true if caller is the GUI dispatch threadpublic void updateOutgoingMessage(int index, boolean isGuiDispatchThread)
updateOutgoingMessage
in interface SendableMessageListener
index
- position of message in the list.isGuiDispatchThread
- boolean true if caller is the GUI dispatch threadpublic void deleteOutgoingMessage(int index, SendableMessage sendableMessage, boolean isGuiDispatchThread)
deleteOutgoingMessage
in interface SendableMessageListener
index
- position of message in the list.sendableMessage
- the SendableMessage that is being cancelledisGuiDispatchThread
- boolean true if caller is the GUI dispatch thread