org.beanfabrics.swing.table
Class BnTableRowSorter2

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

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

Author:
Michael Karneim

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.RowSorter
javax.swing.RowSorter.SortKey
 
Constructor Summary
BnTableRowSorter2(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 BnTableRowSorter2 install(BnTable table)
           
 void modelStructureChanged()
           
protected  void onSortKeysChanged()
          This method is called whenever the IListPM has changed it's sort keys.
 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

BnTableRowSorter2

public BnTableRowSorter2(BnTableModel model)
Method Detail

install

public static BnTableRowSorter2 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>

onSortKeysChanged

protected void onSortKeysChanged()
This method is called whenever the IListPM has changed it's sort keys.


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>


© 2010 by Michael Karneim, http://www.beanfabrics.org