Venice 0.751beta

nz.org.venice.ui
Class SortedTable.SortModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bynz.org.venice.ui.SortedTable.SortModel
All Implemented Interfaces:
java.util.EventListener, java.io.Serializable, javax.swing.table.TableModel, javax.swing.event.TableModelListener
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 isCellEditable(int row, int column)
           
 boolean isColumnVisible(int columnNumber)
           
 void setValueAt(java.lang.Object value, int row, int column)
           
 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, removeTableModelListener
 
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)

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface javax.swing.table.TableModel

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

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Specified by:
getValueAt in interface javax.swing.table.TableModel

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int column)
Specified by:
setValueAt 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.751beta