|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel jap.forward.JAPRoutingInfoServiceRegistrationTableModel
public class JAPRoutingInfoServiceRegistrationTableModel
This is the implementation of the infoservice registration table data, showed in the server status box. The status values in the table are updated automatically, when they have been changed.
Field Summary | |
---|---|
private java.util.Vector |
m_propagandaInstances
This is the list of all known propaganda instances, displayed in the table. |
private static long |
serialVersionUID
serial version UID |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
JAPRoutingInfoServiceRegistrationTableModel()
Creates a new instance of JAPRoutingInfoServiceRegistrationTableModel. |
Method Summary | |
---|---|
void |
clearPropagandaInstancesTable()
Removes all propaganda instances from the table. |
int |
getColumnCount()
Returns the number of columns in the infoservice registration table. |
java.lang.String |
getColumnName(int a_column)
Returns the name of the specified column. |
int |
getRowCount()
Returns the number of rows in the infoservice registration table. |
java.lang.Object |
getValueAt(int a_row,
int a_column)
Returns a value of a cell in the table. |
void |
update(java.util.Observable a_notifier,
java.lang.Object a_message)
This is the implementation of the observer of the propaganda instances. |
void |
updatePropagandaInstancesList(java.util.Vector a_newPropagandaInstancesList)
Updates the list of all displayed propaganda instances. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, 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 |
---|
private static final long serialVersionUID
private java.util.Vector m_propagandaInstances
Constructor Detail |
---|
public JAPRoutingInfoServiceRegistrationTableModel()
Method Detail |
---|
public void updatePropagandaInstancesList(java.util.Vector a_newPropagandaInstancesList)
a_newPropagandaInstancesList
- A Vector with propaganda instances. The new ones are
added to the internal list.public void update(java.util.Observable a_notifier, java.lang.Object a_message)
update
in interface java.util.Observer
a_notifier
- The propaganda instance, which has changed the state.public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.String getColumnName(int a_column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
a_column
- The number of the column to get the name for. If this is not a valid column
number, null is returned.
public java.lang.Object getValueAt(int a_row, int a_column)
getValueAt
in interface javax.swing.table.TableModel
a_row
- The row (propaganda instance) to get the value for.a_column
- The column to get the value for.
public void clearPropagandaInstancesTable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |