Public Member Functions | |
LogTableRowSorter (LogTableDataModel model) | |
void | setFilters (FiltersVector newFilters, boolean append) |
String | getFiltersString () |
FiltersVector | getFilters () |
void | setLogLevel (LogTypeHelper newLevel) |
void | toggleSortOrder (int column) |
void | run () |
LogTableRowSorter
extends TableRowSorter
to customize ordering, sorting and filtering for the table of logs.
The engine and the FilterChooserDialog
uses a FiltersVector
to apply filtering to the logs but JTable
needs a RowSorter
instead.
This object converts the engine specific vector of filters into the objects expected by the table.
alma.acs.logging.table.LogTableRowSorter.LogTableRowSorter | ( | LogTableDataModel | model | ) |
FiltersVector alma.acs.logging.table.LogTableRowSorter.getFilters | ( | ) |
Return the filters defined by the user
Implements com.cosylab.logging.engine.Filterable.
Referenced by alma.acs.logging.table.LogEntryTable.getFilters().
String alma.acs.logging.table.LogTableRowSorter.getFiltersString | ( | ) |
References com.cosylab.logging.engine.FiltersVector.getFilterString().
Referenced by alma.acs.logging.table.LogEntryTable.getFiltersString().
void alma.acs.logging.table.LogTableRowSorter.run | ( | ) |
The thread to execute the super.toggleSortOrder
without freezing the GUI.
void alma.acs.logging.table.LogTableRowSorter.setFilters | ( | FiltersVector | newFilters, | |
boolean | append | |||
) |
Set the filters. The new filters can replace or appended to the already exisiting filters.
The new filters can be null
to remove the filtering. For this purpose append
must be false
.
newFilters | The new vector of filters It can be null to remove the filtering | |
append | If true the filters are appended to the existing filters |
Implements com.cosylab.logging.engine.Filterable.
References com.cosylab.logging.engine.FiltersVector.addFilter(), com.cosylab.logging.engine.FiltersVector.clear(), com.cosylab.logging.engine.FiltersVector.isActive(), and com.cosylab.logging.engine.FiltersVector.setFilters().
Referenced by alma.acs.logging.table.LogEntryTable.setFilters().
void alma.acs.logging.table.LogTableRowSorter.setLogLevel | ( | LogTypeHelper | newLevel | ) |
Set the new log level i.e. the level of the logs shown in the table.
newLevel |
Referenced by alma.acs.logging.table.LogEntryTable.setLogLevel().
void alma.acs.logging.table.LogTableRowSorter.toggleSortOrder | ( | int | column | ) |
Change the ordering when the user presses over a column header. We need to execute this method on a separate thread otherwise the GUI freezes until the ordering completes.