ie.nuigalway.ecrg.jade.jmsagentgateway.gui
Class SubscriptionTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--ie.nuigalway.ecrg.jade.jmsagentgateway.gui.SubscriptionTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class SubscriptionTableModel
extends javax.swing.table.AbstractTableModel

Table model of gui subscription lsit

Version:
0.5 12 January 2004
Author:
Edward Curry
See Also:
Serialized Form

Field Summary
private  java.util.Vector subs
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SubscriptionTableModel()
          Constructor for the SubscriptionTableModel object
 
Method Summary
 void add(SubscriptionModel sub)
          Add Subscription to the list
 void clear()
          Clear the list of subscriptions
 int getColumnCount()
          Gets the columnCount attribute of the SubscriptionTableModel object
 SubscriptionModel getElementAt(int index)
          Gets the elementAt attribute of the SubscriptionTableModel object
 int getRowCount()
          Gets the rowCount attribute of the SubscriptionTableModel object
 java.lang.Object getValueAt(int row, int column)
          Gets the valueAt attribute of the SubscriptionTableModel object
 void remove(SubscriptionModel sub)
          Remove subscription from list
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, 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

subs

private java.util.Vector subs
Constructor Detail

SubscriptionTableModel

public SubscriptionTableModel()
Constructor for the SubscriptionTableModel object

Method Detail

add

public void add(SubscriptionModel sub)
Add Subscription to the list

Parameters:
sub - New subscription to be added

remove

public void remove(SubscriptionModel sub)
Remove subscription from list

Parameters:
sub - Subscription to be removed

getElementAt

public SubscriptionModel getElementAt(int index)
Gets the elementAt attribute of the SubscriptionTableModel object

Parameters:
index - Index of requested element
Returns:
The requested SubscriptionModel

clear

public void clear()
Clear the list of subscriptions


getRowCount

public int getRowCount()
Gets the rowCount attribute of the SubscriptionTableModel object

Returns:
The rowCount value

getColumnCount

public int getColumnCount()
Gets the columnCount attribute of the SubscriptionTableModel object

Returns:
The columnCount value

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Gets the valueAt attribute of the SubscriptionTableModel object

Parameters:
row - Row number
column - Column number
Returns:
Requested Value