M
- type of the model (MidicaTableModel)public class ExportResultTableSorter<M> extends MidicaSorter<M>
This class provides table filtering (and sorting) for the warnings in the export result table.
The sorting functionality is implemented by the parent class. This class adds table specific filtering.
Modifier and Type | Field and Description |
---|---|
private boolean |
showCrdGrpFailed |
private boolean |
showMetaMsg |
private boolean |
showOffNotFound |
private boolean |
showOther |
private boolean |
showRestSkipped |
private boolean |
showShortMsg |
private boolean |
showSysexMsg |
filterStr
Constructor and Description |
---|
ExportResultTableSorter() |
Modifier and Type | Method and Description |
---|---|
void |
filter()
Applies all filters.
|
void |
setWarningFilters(boolean shortMsg,
boolean metaMsg,
boolean sysexMsg,
boolean restSkipped,
boolean offNotFound,
boolean crdGrpFailed,
boolean other)
Sets a new set of warning filters.
|
setStringFilter, toggleSortOrder
getComparator, getStringConverter, setModel, setStringConverter, useToString
allRowsChanged, convertRowIndexToModel, convertRowIndexToView, getMaxSortKeys, getModel, getModelRowCount, getModelWrapper, getRowFilter, getSortKeys, getSortsOnUpdates, getViewRowCount, isSortable, modelStructureChanged, rowsDeleted, rowsInserted, rowsUpdated, rowsUpdated, setComparator, setMaxSortKeys, setModelWrapper, setRowFilter, setSortable, setSortKeys, setSortsOnUpdates, sort
private boolean showShortMsg
private boolean showMetaMsg
private boolean showSysexMsg
private boolean showRestSkipped
private boolean showOffNotFound
private boolean showCrdGrpFailed
private boolean showOther
public void setWarningFilters(boolean shortMsg, boolean metaMsg, boolean sysexMsg, boolean restSkipped, boolean offNotFound, boolean crdGrpFailed, boolean other)
Sets a new set of warning filters.
The only filter type which is not set here is the string filter. This is done by setStringFilter() in the parent class.
shortMsg
- true to show Ignored Short Message warnings, otherwise falsemetaMsg
- true to show Ignored Meta Message warnings, otherwise falsesysexMsg
- true to show Ignored SysEx Message warnings, otherwise falserestSkipped
- true to show Skipped Rest warnings, otherwise falseoffNotFound
- true to show Note-OFF Not Found warnings, otherwise falsecrdGrpFailed
- true to show Chord Grouping Failed warnings, otherwise falseother
- true to show other warnings, otherwise falsepublic void filter()
Applies all filters. This includes the filters set by setMessageFilters() as well as the string filter set by setStringFilter() in the parent class.