gov.nih.nlm.mms.filters
Class SourcesToRemoveTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bygov.nih.nlm.mms.filters.SourcesToRemoveTableModel
All Implemented Interfaces:
Serializable, TableModel

public class SourcesToRemoveTableModel
extends AbstractTableModel

Stores and initializes the data for the Sources To Exclude table.

Author:
Deborah Shapiro, Brian Carlsen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SourcesToRemoveTableModel(ApplicationConfiguration default_config)
          This constructor gets the initial values for the sources table.
 
Method Summary
 Class getColumnClass(int column_number)
          Returns the Class of the objects in the given column.
 int getColumnCount()
          Returns the number of columns in the sources to exclude table.
 String getColumnName(int column_number)
          Returns the name of a column in the sources to exclude table
 int getRowCount()
          Returns the number of rows in the sources to exclude table.
 int getRowForSource(Source source)
          Returns the row number for a given Source in the Sources To Remove Table.
 Source getSourceAtRow(int row)
          Returns the Source at a given row in the Sources To Remove Table.
 Object getValueAt(int row, int column)
          Returns the value at the cell of the sources to exclude table.
 
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
 

Constructor Detail

SourcesToRemoveTableModel

public SourcesToRemoveTableModel(ApplicationConfiguration default_config)
This constructor gets the initial values for the sources table.

Parameters:
default_config - ApplicationConfiguration
Method Detail

getColumnCount

public int getColumnCount()
Returns the number of columns in the sources to exclude table.

Returns:
int number of columns

getRowCount

public int getRowCount()
Returns the number of rows in the sources to exclude table.

Returns:
int number of rows

getColumnName

public String getColumnName(int column_number)
Returns the name of a column in the sources to exclude table

Parameters:
column_number - int number of the column in question
Returns:
String name of the column in position column_number

getValueAt

public Object getValueAt(int row,
                         int column)
Returns the value at the cell of the sources to exclude table.

Parameters:
row - int row number of the cell
column - int column number of the cell
Returns:
the value at the cell at row and column

getColumnClass

public Class getColumnClass(int column_number)
Returns the Class of the objects in the given column.

Parameters:
column_number - int indicates the column in question
Returns:
the Class of the column

getSourceAtRow

public Source getSourceAtRow(int row)
Returns the Source at a given row in the Sources To Remove Table.

Parameters:
row - int row number
Returns:
Source

getRowForSource

public int getRowForSource(Source source)
Returns the row number for a given Source in the Sources To Remove Table.

Parameters:
source - Source
Returns:
int row number


Copyright ©2005