Venice 0.7beta

org.mov.ui
Class SortedTable.SortModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by 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

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SortedTable.SortModel(javax.swing.table.TableModel userModel, int sortColumn, int sortDirection)
           
 
Method Summary
 int convertFromDisplayedColumn(int column)
           
 java.lang.Class getColumnClass(int column)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 int getRowCount()
           
 int getSortedRow(int unsortedRow)
           
 int getUnsortedRow(int sortedRow)
           
 javax.swing.table.TableModel getUserModel()
           
 java.lang.Object getValueAt(int row, int column)
           
 boolean isColumnVisible(int columnNumber)
           
 void showColumn(int columnNumber, boolean show)
           
 void sort(int sortColumn, int sortDirection)
           
 void tableChanged(javax.swing.event.TableModelEvent e)
           
 
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

SortedTable.SortModel

public SortedTable.SortModel(javax.swing.table.TableModel userModel,
                             int sortColumn,
                             int sortDirection)
Method Detail

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()

Venice 0.7beta