Documentation of 'org.jdesktop.swingx.sort.RowSorterWrapper' Java class
RowSorterWrapper
org.jdesktop.swingx.sort

Class 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 Detail

      • RowSorterWrapper

        public RowSorterWrapper(javax.swing.RowSorter<M> delegate)
    • Method Detail

      • getModel

        public M getModel()
        Specified by:
        getModel in class javax.swing.RowSorter<M>
      • toggleSortOrder

        public void toggleSortOrder(int column)
        Specified by:
        toggleSortOrder in class javax.swing.RowSorter<M>
      • convertRowIndexToModel

        public int convertRowIndexToModel(int index)
        Specified by:
        convertRowIndexToModel in class javax.swing.RowSorter<M>
      • convertRowIndexToView

        public int convertRowIndexToView(int index)
        Specified by:
        convertRowIndexToView in class javax.swing.RowSorter<M>
      • setSortKeys

        public void setSortKeys(java.util.List<? extends javax.swing.RowSorter.SortKey> keys)
        Specified by:
        setSortKeys in class javax.swing.RowSorter<M>
      • getSortKeys

        public java.util.List<? extends javax.swing.RowSorter.SortKey> getSortKeys()
        Specified by:
        getSortKeys in class javax.swing.RowSorter<M>
      • getViewRowCount

        public int getViewRowCount()
        Specified by:
        getViewRowCount in class javax.swing.RowSorter<M>
      • getModelRowCount

        public int getModelRowCount()
        Specified by:
        getModelRowCount in class javax.swing.RowSorter<M>
      • modelStructureChanged

        public void modelStructureChanged()

        Implemented to do nothing, we are the slave of the delegate.

        Specified by:
        modelStructureChanged in class javax.swing.RowSorter<M>
      • allRowsChanged

        public void allRowsChanged()

        Implemented to do nothing, we are the slave of the delegate.

        Specified by:
        allRowsChanged in class javax.swing.RowSorter<M>
      • rowsInserted

        public void rowsInserted(int firstRow,
                                 int endRow)

        Implemented to do nothing, we are the slave of the delegate.

        Specified by:
        rowsInserted in class javax.swing.RowSorter<M>
      • rowsDeleted

        public void rowsDeleted(int firstRow,
                                int endRow)
        Specified by:
        rowsDeleted in class javax.swing.RowSorter<M>
      • rowsUpdated

        public void rowsUpdated(int firstRow,
                                int endRow)

        Implemented to do nothing, we are the slave of the delegate.

        Specified by:
        rowsUpdated in class javax.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:
        rowsUpdated in class javax.swing.RowSorter<M>

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.