|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.ka2ddo.yaac.gui.OutstandingMessageTableModel
public class OutstandingMessageTableModel
This class displays all the outstanding messages that have been transmitted by this YAAC instance.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Method Summary | |
|---|---|
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)
|
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. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, removeTableModelListener, setValueAt |
| Method Detail |
|---|
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.TableModelgetColumnCount()public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelgetRowCount()public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column being queried
columnpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the column being queried
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.
getValueAt in interface javax.swing.table.TableModelrowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queried
public int compareRows(int rowIndex1,
int rowIndex2,
int columnIndex)
compareRows in interface FastComparableTableModelrowIndex1 - 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 compare
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic int getColumnWidth(int columnIndex)
getColumnWidth in interface ColumnSizingTableModelcolumnIndex - int index of the model's column whose width should be obtained
public boolean isSizeToFit(int columnIndex)
isSizeToFit in interface ColumnSizingTableModelcolumnIndex - int index of the model's column whose width should be obtained
public static void showOutstandingTable()
public static OutstandingMessageTableModel getInstance()
public void insertOutgoingMessage(int index,
boolean isGuiDispatchThread)
insertOutgoingMessage in interface SendableMessageListenerindex - position of message in the list.isGuiDispatchThread - boolean true if caller is the GUI dispatch thread
public void updateOutgoingMessage(int index,
boolean isGuiDispatchThread)
updateOutgoingMessage in interface SendableMessageListenerindex - position of message in the list.isGuiDispatchThread - boolean true if caller is the GUI dispatch thread
public void deleteOutgoingMessage(int index,
SendableMessage sendableMessage,
boolean isGuiDispatchThread)
deleteOutgoingMessage in interface SendableMessageListenerindex - position of message in the list.sendableMessage - the SendableMessage that is being cancelledisGuiDispatchThread - boolean true if caller is the GUI dispatch thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||