info.joseluismartin.gui.table
Class ListTableModelSorter

java.lang.Object
  extended by javax.swing.RowSorter<ListTableModel>
      extended by info.joseluismartin.gui.table.ListTableModelSorter

public class ListTableModelSorter
extends RowSorter<ListTableModel>

RowSorter that sort the model list of a ListTableModel.

Since:
1.3
Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.RowSorter
RowSorter.SortKey
 
Constructor Summary
ListTableModelSorter()
           
ListTableModelSorter(ListTableModel model)
           
 
Method Summary
 void allRowsChanged()
          
 int convertRowIndexToModel(int index)
          
 int convertRowIndexToView(int index)
          
 ListTableModel getModel()
          
 int getModelRowCount()
          
 List<? extends RowSorter.SortKey> getSortKeys()
          
 int getViewRowCount()
          
 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(List<? extends RowSorter.SortKey> keys)
          
 void toggleSortOrder(int column)
          
 
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

ListTableModelSorter

public ListTableModelSorter()

ListTableModelSorter

public ListTableModelSorter(ListTableModel model)
Parameters:
model -
Method Detail

getModel

public ListTableModel getModel()

Specified by:
getModel in class RowSorter<ListTableModel>

toggleSortOrder

public void toggleSortOrder(int column)

Specified by:
toggleSortOrder in class RowSorter<ListTableModel>

convertRowIndexToModel

public int convertRowIndexToModel(int index)

Specified by:
convertRowIndexToModel in class RowSorter<ListTableModel>

convertRowIndexToView

public int convertRowIndexToView(int index)

Specified by:
convertRowIndexToView in class RowSorter<ListTableModel>

setSortKeys

public void setSortKeys(List<? extends RowSorter.SortKey> keys)

Specified by:
setSortKeys in class RowSorter<ListTableModel>

getSortKeys

public List<? extends RowSorter.SortKey> getSortKeys()

Specified by:
getSortKeys in class RowSorter<ListTableModel>

getViewRowCount

public int getViewRowCount()

Specified by:
getViewRowCount in class RowSorter<ListTableModel>

getModelRowCount

public int getModelRowCount()

Specified by:
getModelRowCount in class RowSorter<ListTableModel>

modelStructureChanged

public void modelStructureChanged()

Specified by:
modelStructureChanged in class RowSorter<ListTableModel>

allRowsChanged

public void allRowsChanged()

Specified by:
allRowsChanged in class RowSorter<ListTableModel>

rowsInserted

public void rowsInserted(int firstRow,
                         int endRow)

Specified by:
rowsInserted in class RowSorter<ListTableModel>

rowsDeleted

public void rowsDeleted(int firstRow,
                        int endRow)

Specified by:
rowsDeleted in class RowSorter<ListTableModel>

rowsUpdated

public void rowsUpdated(int firstRow,
                        int endRow)

Specified by:
rowsUpdated in class RowSorter<ListTableModel>

rowsUpdated

public void rowsUpdated(int firstRow,
                        int endRow,
                        int column)

Specified by:
rowsUpdated in class RowSorter<ListTableModel>


Copyright © 2013 JDAL. All Rights Reserved.