org.jdesktop.swingx.sort
Class RowSorterWrapper<M>
- java.lang.Object
-
- javax.swing.RowSorter<M>
-
- org.jdesktop.swingx.sort.RowSorterWrapper<M>
-
public class RowSorterWrapper<M> extends javax.swing.RowSorter<M>Wrapping RowSorter for usage (f.i.) in a rowHeader. Delegates all state queries, does nothing on receiving notification of model changes, propagates rowSorterEvents from delegates. PENDING: test formally, until now only poc in JXListSortRevamp!
-
-
Constructor Summary
Constructors Constructor and Description RowSorterWrapper(javax.swing.RowSorter<M> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidallRowsChanged()intconvertRowIndexToModel(int index)intconvertRowIndexToView(int index)MgetModel()intgetModelRowCount()java.util.List<? extends javax.swing.RowSorter.SortKey>getSortKeys()intgetViewRowCount()voidmodelStructureChanged()voidrowsDeleted(int firstRow, int endRow)voidrowsInserted(int firstRow, int endRow)voidrowsUpdated(int firstRow, int endRow)voidrowsUpdated(int firstRow, int endRow, int column)voidsetSortKeys(java.util.List<? extends javax.swing.RowSorter.SortKey> keys)voidtoggleSortOrder(int column)
-
-
-
Constructor Detail
-
RowSorterWrapper
public RowSorterWrapper(javax.swing.RowSorter<M> delegate)
-
-
Method Detail
-
toggleSortOrder
public void toggleSortOrder(int column)
- Specified by:
toggleSortOrderin classjavax.swing.RowSorter<M>
-
convertRowIndexToModel
public int convertRowIndexToModel(int index)
- Specified by:
convertRowIndexToModelin classjavax.swing.RowSorter<M>
-
convertRowIndexToView
public int convertRowIndexToView(int index)
- Specified by:
convertRowIndexToViewin classjavax.swing.RowSorter<M>
-
setSortKeys
public void setSortKeys(java.util.List<? extends javax.swing.RowSorter.SortKey> keys)
- Specified by:
setSortKeysin classjavax.swing.RowSorter<M>
-
getSortKeys
public java.util.List<? extends javax.swing.RowSorter.SortKey> getSortKeys()
- Specified by:
getSortKeysin classjavax.swing.RowSorter<M>
-
getViewRowCount
public int getViewRowCount()
- Specified by:
getViewRowCountin classjavax.swing.RowSorter<M>
-
getModelRowCount
public int getModelRowCount()
- Specified by:
getModelRowCountin classjavax.swing.RowSorter<M>
-
modelStructureChanged
public void modelStructureChanged()
Implemented to do nothing, we are the slave of the delegate.
- Specified by:
modelStructureChangedin classjavax.swing.RowSorter<M>
-
allRowsChanged
public void allRowsChanged()
Implemented to do nothing, we are the slave of the delegate.
- Specified by:
allRowsChangedin classjavax.swing.RowSorter<M>
-
rowsInserted
public void rowsInserted(int firstRow, int endRow)Implemented to do nothing, we are the slave of the delegate.
- Specified by:
rowsInsertedin classjavax.swing.RowSorter<M>
-
rowsDeleted
public void rowsDeleted(int firstRow, int endRow)- Specified by:
rowsDeletedin classjavax.swing.RowSorter<M>
-
rowsUpdated
public void rowsUpdated(int firstRow, int endRow)Implemented to do nothing, we are the slave of the delegate.
- Specified by:
rowsUpdatedin classjavax.swing.RowSorter<M>
-
rowsUpdated
public void rowsUpdated(int firstRow, int endRow, int column)Implemented to do nothing, we are the slave of the delegate.
- Specified by:
rowsUpdatedin classjavax.swing.RowSorter<M>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG