- 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 void
allRowsChanged()
int
convertRowIndexToModel(int pIndex)
int
convertRowIndexToView(int pIndex)
M
getModel()
int
getModelRowCount()
List<? extends RowSorter.SortKey>
getSortKeys()
int
getViewRowCount()
void
modelStructureChanged()
void
rowsDeleted(int pFirstRow, int pEndRow)
void
rowsInserted(int pFirstRow, int pEndRow)
void
rowsUpdated(int pFirstRow, int pEndRow)
void
rowsUpdated(int pFirstRow, int pEndRow, int pColumn)
void
setSortKeys(List<? extends RowSorter.SortKey> pKeys)
void
toggleSortOrder(int pColumn)
-
Methods inherited from class javax.swing.RowSorter
addRowSorterListener, fireRowSorterChanged, fireSortOrderChanged, removeRowSorterListener
-
-
-
-
Method Detail
-
toggleSortOrder
public void toggleSortOrder(int pColumn)
- Specified by:
toggleSortOrder
in classRowSorter<M>
-
convertRowIndexToModel
public int convertRowIndexToModel(int pIndex)
- Specified by:
convertRowIndexToModel
in classRowSorter<M>
-
convertRowIndexToView
public int convertRowIndexToView(int pIndex)
- Specified by:
convertRowIndexToView
in classRowSorter<M>
-
setSortKeys
public void setSortKeys(List<? extends RowSorter.SortKey> pKeys)
- Specified by:
setSortKeys
in classRowSorter<M>
-
getSortKeys
public List<? extends RowSorter.SortKey> getSortKeys()
- Specified by:
getSortKeys
in classRowSorter<M>
-
getViewRowCount
public int getViewRowCount()
- Specified by:
getViewRowCount
in classRowSorter<M>
-
getModelRowCount
public int getModelRowCount()
- Specified by:
getModelRowCount
in classRowSorter<M>
-
modelStructureChanged
public void modelStructureChanged()
- Specified by:
modelStructureChanged
in classRowSorter<M>
-
allRowsChanged
public void allRowsChanged()
- Specified by:
allRowsChanged
in classRowSorter<M>
-
rowsInserted
public void rowsInserted(int pFirstRow, int pEndRow)
- Specified by:
rowsInserted
in classRowSorter<M>
-
rowsDeleted
public void rowsDeleted(int pFirstRow, int pEndRow)
- Specified by:
rowsDeleted
in classRowSorter<M>
-
rowsUpdated
public void rowsUpdated(int pFirstRow, int pEndRow)
- Specified by:
rowsUpdated
in classRowSorter<M>
-
rowsUpdated
public void rowsUpdated(int pFirstRow, int pEndRow, int pColumn)
- Specified by:
rowsUpdated
in classRowSorter<M>
-
-