org.mov.ui
Class SortedTable.SortModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.mov.ui.SortedTable.SortModel
- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, javax.swing.event.TableModelListener, javax.swing.table.TableModel
- Enclosing class:
- SortedTable
public class SortedTable.SortModel
- extends javax.swing.table.AbstractTableModel
- implements javax.swing.event.TableModelListener
- See Also:
- Serialized Form
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary |
SortedTable.SortModel(javax.swing.table.TableModel userModel,
int sortColumn,
int sortDirection)
|
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 |
SortedTable.SortModel
public SortedTable.SortModel(javax.swing.table.TableModel userModel,
int sortColumn,
int sortDirection)
tableChanged
public void tableChanged(javax.swing.event.TableModelEvent e)
- Specified by:
tableChanged
in interface javax.swing.event.TableModelListener
isColumnVisible
public boolean isColumnVisible(int columnNumber)
showColumn
public void showColumn(int columnNumber,
boolean show)
convertFromDisplayedColumn
public int convertFromDisplayedColumn(int column)
sort
public void sort(int sortColumn,
int sortDirection)
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface javax.swing.table.TableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface javax.swing.table.TableModel
getColumnClass
public java.lang.Class getColumnClass(int column)
- Specified by:
getColumnClass
in interface javax.swing.table.TableModel
- Overrides:
getColumnClass
in class javax.swing.table.AbstractTableModel
getColumnName
public java.lang.String getColumnName(int column)
- Specified by:
getColumnName
in interface javax.swing.table.TableModel
- Overrides:
getColumnName
in class javax.swing.table.AbstractTableModel
getValueAt
public java.lang.Object getValueAt(int row,
int column)
- Specified by:
getValueAt
in interface javax.swing.table.TableModel
getUnsortedRow
public int getUnsortedRow(int sortedRow)
getSortedRow
public int getSortedRow(int unsortedRow)
getUserModel
public javax.swing.table.TableModel getUserModel()