|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
gov.nih.nlm.mms.filters.PrecedenceTableModel
Manages and initializes the data for the Precedence table
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
PrecedenceTableModel(ApplicationConfiguration config,
PrecedenceFilter filter)
This constructor takes the initial values for the precedence table from the default configuration file. |
Method Summary | |
void |
cutRow(int[] rows_to_cut)
Removes rows in table that are cut. |
Class |
getColumnClass(int column_number)
Returns the Class of the Object s in column with index
column_number. |
int |
getColumnCount()
Returns the number of columns in the precedence table. |
String |
getColumnName(int column_number)
Returns the name of a column in the precedence table. |
int |
getRowCount()
Returns the number of rows in the precedence table. |
int |
getRowForSourceTermType(SourceTermType tg)
Gets row from the PrecedenceFilter 's precedence array for the
given SourceTermType . |
Object |
getValueAt(int row,
int column)
Returns the value at the cell of the precedence table. |
void |
moveRow(int[] drag_row_index,
int drop_row_index)
Moves rows in table from initial/drag location to final/drop location. |
void |
pasteRow(int paste_location)
Pastes rows in table that were cut. |
void |
setData(ArrayList d)
|
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 |
Methods inherited from interface javax.swing.table.TableModel |
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt |
Constructor Detail |
public PrecedenceTableModel(ApplicationConfiguration config, PrecedenceFilter filter)
config
- ApplicationConfiguration
objectfilter
- PrecedenceFilter
Method Detail |
public void setData(ArrayList d)
public int getColumnCount()
getColumnCount
in interface TableModel
public int getRowCount()
getRowCount
in interface TableModel
public String getColumnName(int column_number)
getColumnName
in interface TableModel
column_number
- The int
number of the column in question
String
name of the column in the table in position
column_numberpublic Object getValueAt(int row, int column)
getValueAt
in interface TableModel
row
- The int
row number of the cellcolumn
- The int
column number of the cell
Object
value at the cell at row and columnpublic Class getColumnClass(int column_number)
Class
of the Object
s in column with index
column_number.
getColumnClass
in interface TableModel
column_number
- int
indicates the column in question
Class
of the columnpublic void moveRow(int[] drag_row_index, int drop_row_index)
moveRow
in interface CutandPasteDNDTableModel
drag_row_index
- are the indexes of the rows that are to be draggeddrop_row_index
- is the index where the dragged row is to be droppedpublic void cutRow(int[] rows_to_cut)
cutRow
in interface CutandPasteDNDTableModel
rows_to_cut
- are the indexes of the rows that are to be cutpublic void pasteRow(int paste_location)
pasteRow
in interface CutandPasteDNDTableModel
paste_location
- is the index where the cut row will be pastedpublic int getRowForSourceTermType(SourceTermType tg)
PrecedenceFilter
's precedence array for the
given SourceTermType
.
tg
- SourceTermType
int
row for the given SourceTermType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |