org.beanfabrics.swing.table
Class BnTableRowSorter

java.lang.Object
  extended by javax.swing.RowSorter<BnTableModel>
      extended by org.beanfabrics.swing.table.BnTableRowSorter

public class BnTableRowSorter
extends javax.swing.RowSorter<BnTableModel>


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.RowSorter
javax.swing.RowSorter.SortKey
 
Constructor Summary
BnTableRowSorter(BnTableModel model)
           
 
Method Summary
 void allRowsChanged()
           
 int convertRowIndexToModel(int index)
           
 int convertRowIndexToView(int index)
           
 void dismiss()
           
 BnTableModel getModel()
           
 int getModelRowCount()
           
 java.util.List<? extends javax.swing.RowSorter.SortKey> getSortKeys()
           
 int getViewRowCount()
           
static BnTableRowSorter install(BnTable table)
           
 void modelStructureChanged()
           
 void rowsDeleted(int firstRow, int endRow)
           
 void rowsInserted(int firstRow, int endRow)
           
 void rowsUpdated(int firstRow, int endRow)
           
 void rowsUpdated(int firstRow, int endRow, int column)
           
 void setSortKeys(java.util.List<? extends javax.swing.RowSorter.SortKey> keys)
           
 void toggleSortOrder(int column)
           
static void uninstall(BnTable table)
           
 
Methods inherited from class javax.swing.RowSorter
addRowSorterListener, fireRowSorterChanged, fireSortOrderChanged, removeRowSorterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BnTableRowSorter

public BnTableRowSorter(BnTableModel model)
Method Detail

install

public static BnTableRowSorter install(BnTable table)

uninstall

public static void uninstall(BnTable table)

dismiss

public void dismiss()

convertRowIndexToModel

public int convertRowIndexToModel(int index)
Specified by:
convertRowIndexToModel in class javax.swing.RowSorter<BnTableModel>

convertRowIndexToView

public int convertRowIndexToView(int index)
Specified by:
convertRowIndexToView in class javax.swing.RowSorter<BnTableModel>

getModel

public BnTableModel getModel()
Specified by:
getModel in class javax.swing.RowSorter<BnTableModel>

getModelRowCount

public int getModelRowCount()
Specified by:
getModelRowCount in class javax.swing.RowSorter<BnTableModel>

getSortKeys

public java.util.List<? extends javax.swing.RowSorter.SortKey> getSortKeys()
Specified by:
getSortKeys in class javax.swing.RowSorter<BnTableModel>

getViewRowCount

public int getViewRowCount()
Specified by:
getViewRowCount in class javax.swing.RowSorter<BnTableModel>

setSortKeys

public void setSortKeys(java.util.List<? extends javax.swing.RowSorter.SortKey> keys)
Specified by:
setSortKeys in class javax.swing.RowSorter<BnTableModel>

toggleSortOrder

public void toggleSortOrder(int column)
Specified by:
toggleSortOrder in class javax.swing.RowSorter<BnTableModel>

modelStructureChanged

public void modelStructureChanged()
Specified by:
modelStructureChanged in class javax.swing.RowSorter<BnTableModel>

rowsDeleted

public void rowsDeleted(int firstRow,
                        int endRow)
Specified by:
rowsDeleted in class javax.swing.RowSorter<BnTableModel>

rowsInserted

public void rowsInserted(int firstRow,
                         int endRow)
Specified by:
rowsInserted in class javax.swing.RowSorter<BnTableModel>

rowsUpdated

public void rowsUpdated(int firstRow,
                        int endRow)
Specified by:
rowsUpdated in class javax.swing.RowSorter<BnTableModel>

rowsUpdated

public void rowsUpdated(int firstRow,
                        int endRow,
                        int column)
Specified by:
rowsUpdated in class javax.swing.RowSorter<BnTableModel>

allRowsChanged

public void allRowsChanged()
Specified by:
allRowsChanged in class javax.swing.RowSorter<BnTableModel>