Package com.tagtraum.beatunes.filter
Class SongTableRowSorter
- java.lang.Object
-
- javax.swing.RowSorter<AbstractSongTableModel>
-
- com.tagtraum.beatunes.filter.SongTableRowSorter
-
- Direct Known Subclasses:
PlayListSorter
,TableModelSorter
public abstract class SongTableRowSorter extends RowSorter<AbstractSongTableModel>
Song table row sorter.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.RowSorter
RowSorter.SortKey
-
-
Constructor Summary
Constructors Constructor Description SongTableRowSorter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
fireRowSorterChanged(int[] oldViewToModel)
protected void
fireSortOrderChanged()
abstract SubstringRowFilter
getRowFilter()
Return row filter.abstract void
nextSortConfig(int column)
Changes theSongTableColumn.SortConfig
that is used for a given model.abstract void
setModel(AbstractSongTableModel model)
Sets the underlying unsorted, unfiltered model.abstract void
setRowFilter(SubstringRowFilter rowFilter)
Sets row filter.-
Methods inherited from class javax.swing.RowSorter
addRowSorterListener, allRowsChanged, convertRowIndexToModel, convertRowIndexToView, getModel, getModelRowCount, getSortKeys, getViewRowCount, modelStructureChanged, removeRowSorterListener, rowsDeleted, rowsInserted, rowsUpdated, rowsUpdated, setSortKeys, toggleSortOrder
-
-
-
-
Method Detail
-
nextSortConfig
public abstract void nextSortConfig(int column)
Changes theSongTableColumn.SortConfig
that is used for a given model.- Parameters:
column
- column index- See Also:
SortableTableColumn.ColumnDescriptor.nextSortConfig()
-
setRowFilter
public abstract void setRowFilter(SubstringRowFilter rowFilter)
Sets row filter.- Parameters:
rowFilter
- filter
-
getRowFilter
public abstract SubstringRowFilter getRowFilter()
Return row filter.- Returns:
- filter
-
setModel
public abstract void setModel(AbstractSongTableModel model)
Sets the underlying unsorted, unfiltered model.- Parameters:
model
- table model
-
fireSortOrderChanged
protected void fireSortOrderChanged()
- Overrides:
fireSortOrderChanged
in classRowSorter<AbstractSongTableModel>
-
fireRowSorterChanged
protected void fireRowSorterChanged(int[] oldViewToModel)
- Overrides:
fireRowSorterChanged
in classRowSorter<AbstractSongTableModel>
-
-