Package gov.nih.mipav.model.structures
Class SortingTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- javax.swing.table.DefaultTableModel
-
- gov.nih.mipav.model.structures.SortingTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class SortingTableModel extends javax.swing.table.DefaultTableModel
DOCUMENT ME!- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EMPTY_CELL
DOCUMENT ME!private java.util.Hashtable<java.lang.Integer,java.lang.Class<?>>
htColumnClass
DOCUMENT ME!private static long
serialVersionUID
Use serialVersionUID for interoperability.
-
Constructor Summary
Constructors Constructor Description SortingTableModel()
Creates a new SortingTableModel object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int columnIndex)
DOCUMENT ME!java.util.Vector<java.lang.String>
getColumnNames()
DOCUMENT ME!java.util.Vector<java.lang.Object>
getRow(int rowNumber)
DOCUMENT ME!boolean
isCellEditable(int row, int col)
DOCUMENT ME!void
removeAllRows()
DOCUMENT ME!void
setColumnClass(java.lang.Class<?> classType, int columnIndex)
DOCUMENT ME!-
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
EMPTY_CELL
public static final java.lang.String EMPTY_CELL
DOCUMENT ME!- See Also:
- Constant Field Values
-
htColumnClass
private java.util.Hashtable<java.lang.Integer,java.lang.Class<?>> htColumnClass
DOCUMENT ME!
-
-
Method Detail
-
getColumnClass
public java.lang.Class<?> getColumnClass(int columnIndex)
DOCUMENT ME!- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
- Parameters:
columnIndex
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getColumnNames
public java.util.Vector<java.lang.String> getColumnNames()
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getRow
public java.util.Vector<java.lang.Object> getRow(int rowNumber)
DOCUMENT ME!- Parameters:
rowNumber
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isCellEditable
public boolean isCellEditable(int row, int col)
DOCUMENT ME!- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.DefaultTableModel
- Parameters:
row
- DOCUMENT ME!col
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
removeAllRows
public void removeAllRows()
DOCUMENT ME!
-
setColumnClass
public void setColumnClass(java.lang.Class<?> classType, int columnIndex)
DOCUMENT ME!- Parameters:
classType
- DOCUMENT ME!columnIndex
- DOCUMENT ME!
-
-