- java.lang.Object
-
- javax.swing.RowSorter<M>
-
- com.iamsoft.util.ui.swing.CompositeRowSorter<M>
-
- Type Parameters:
M- the type of the underlying model
public class CompositeRowSorter<M> extends RowSorter<M>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.RowSorter
RowSorter.SortKey
-
-
Constructor Summary
Constructors Constructor Description CompositeRowSorter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallRowsChanged()intconvertRowIndexToModel(int pIndex)intconvertRowIndexToView(int pIndex)MgetModel()intgetModelRowCount()List<? extends RowSorter.SortKey>getSortKeys()intgetViewRowCount()voidmodelStructureChanged()voidrowsDeleted(int pFirstRow, int pEndRow)voidrowsInserted(int pFirstRow, int pEndRow)voidrowsUpdated(int pFirstRow, int pEndRow)voidrowsUpdated(int pFirstRow, int pEndRow, int pColumn)voidsetSortKeys(List<? extends RowSorter.SortKey> pKeys)voidtoggleSortOrder(int pColumn)-
Methods inherited from class javax.swing.RowSorter
addRowSorterListener, fireRowSorterChanged, fireSortOrderChanged, removeRowSorterListener
-
-
-
-
Method Detail
-
toggleSortOrder
public void toggleSortOrder(int pColumn)
- Specified by:
toggleSortOrderin classRowSorter<M>
-
convertRowIndexToModel
public int convertRowIndexToModel(int pIndex)
- Specified by:
convertRowIndexToModelin classRowSorter<M>
-
convertRowIndexToView
public int convertRowIndexToView(int pIndex)
- Specified by:
convertRowIndexToViewin classRowSorter<M>
-
setSortKeys
public void setSortKeys(List<? extends RowSorter.SortKey> pKeys)
- Specified by:
setSortKeysin classRowSorter<M>
-
getSortKeys
public List<? extends RowSorter.SortKey> getSortKeys()
- Specified by:
getSortKeysin classRowSorter<M>
-
getViewRowCount
public int getViewRowCount()
- Specified by:
getViewRowCountin classRowSorter<M>
-
getModelRowCount
public int getModelRowCount()
- Specified by:
getModelRowCountin classRowSorter<M>
-
modelStructureChanged
public void modelStructureChanged()
- Specified by:
modelStructureChangedin classRowSorter<M>
-
allRowsChanged
public void allRowsChanged()
- Specified by:
allRowsChangedin classRowSorter<M>
-
rowsInserted
public void rowsInserted(int pFirstRow, int pEndRow)- Specified by:
rowsInsertedin classRowSorter<M>
-
rowsDeleted
public void rowsDeleted(int pFirstRow, int pEndRow)- Specified by:
rowsDeletedin classRowSorter<M>
-
rowsUpdated
public void rowsUpdated(int pFirstRow, int pEndRow)- Specified by:
rowsUpdatedin classRowSorter<M>
-
rowsUpdated
public void rowsUpdated(int pFirstRow, int pEndRow, int pColumn)- Specified by:
rowsUpdatedin classRowSorter<M>
-
-