gov.nih.nlm.mms.filters
Class SemanticTypesToRemoveTableModel

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

public class SemanticTypesToRemoveTableModel
extends AbstractTableModel

Manages and initializes the data for the Semantic Types 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
SemanticTypesToRemoveTableModel()
          This constructor gets the initial values for the SemanticTypesToRemoveJTable table.
 
Method Summary
 Class getColumnClass(int column_number)
          Returns the Class of the Objects in column column_number.
 int getColumnCount()
          Returns the number of columns in the semantic types to exclude table.
 String getColumnName(int column_number)
          Returns the name of a column in the semantic types to exclude table.
 int getRowCount()
          Returns the number of rows in the semantic types to exclude table.
 int getRowForSemanticType(HierarchicalSemanticType sty)
          Returns the row number for a given HierarchicalSemanticType in the Semantic Types To Exclude Table.
 HierarchicalSemanticType getSemanticTypeAtRow(int row)
          Returns the HierarchicalSemanticType at a given row in the Semantic Types To Exclude Table.
 Object getValueAt(int row, int column)
          Returns the value at the cell of the Semantic Types 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

SemanticTypesToRemoveTableModel

public SemanticTypesToRemoveTableModel()
This constructor gets the initial values for the SemanticTypesToRemoveJTable table.

Method Detail

getColumnCount

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

Returns:
int number of columns

getRowCount

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

Returns:
int number of rows

getColumnName

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

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

getValueAt

public Object getValueAt(int row,
                         int column)
Returns the value at the cell of the Semantic Types To Exclude table.

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

getColumnClass

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

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

getSemanticTypeAtRow

public HierarchicalSemanticType getSemanticTypeAtRow(int row)
Returns the HierarchicalSemanticType at a given row in the Semantic Types To Exclude Table.

Parameters:
row - int
Returns:
HierarchicalSemanticType at given row

getRowForSemanticType

public int getRowForSemanticType(HierarchicalSemanticType sty)
Returns the row number for a given HierarchicalSemanticType in the Semantic Types To Exclude Table.

Parameters:
sty - HierarchicalSemanticType
Returns:
int row number


Copyright ©2005