

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 () |
Private Member Functions | |
| void | applyChanges () |
Private Attributes | |
| final FiltersVector | filters = new FiltersVector() |
| LogTypeHelper | logLevel = LogTypeHelper.TRACE |
| int | col |
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 | ) | [inline] |
References applyChanges().
| void alma::acs::logging::table::LogTableRowSorter::applyChanges | ( | ) | [inline, private] |
Set a new filter forcing a reordering of the table
References filters, logLevel, and run().
Referenced by LogTableRowSorter(), setFilters(), and setLogLevel().
| FiltersVector alma::acs::logging::table::LogTableRowSorter::getFilters | ( | ) | [inline] |
Return the filters defined by the user
Implements com::cosylab::logging::engine::Filterable.
References filters.
Referenced by alma::acs::logging::table::LogEntryTable::getFilters().
| String alma::acs::logging::table::LogTableRowSorter::getFiltersString | ( | ) | [inline] |
References filters, and com::cosylab::logging::engine::FiltersVector::getFilterString().
Referenced by alma::acs::logging::table::LogEntryTable::getFiltersString().
| void alma::acs::logging::table::LogTableRowSorter::run | ( | ) | [inline] |
The thread to execute the super.toggleSortOrder without freezing the GUI.
References col.
Referenced by applyChanges().
| void alma::acs::logging::table::LogTableRowSorter::setFilters | ( | FiltersVector | newFilters, | |
| boolean | append | |||
| ) | [inline] |
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(), applyChanges(), com::cosylab::logging::engine::FiltersVector::clear(), filters, 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 | ) | [inline] |
Set the new log level i.e. the level of the logs shown in the table.
| newLevel |
References applyChanges(), and logLevel.
Referenced by alma::acs::logging::table::LogEntryTable::setLogLevel().
| void alma::acs::logging::table::LogTableRowSorter::toggleSortOrder | ( | int | column | ) | [inline] |
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.
References col.
int alma::acs::logging::table::LogTableRowSorter::col [private] |
The column for the toggleSortOrder that must be executed in a separate thread toggleSortOrder
Referenced by run(), and toggleSortOrder().
final FiltersVector alma::acs::logging::table::LogTableRowSorter::filters = new FiltersVector() [private] |
The filters
Referenced by applyChanges(), getFilters(), getFiltersString(), and setFilters().
LogTypeHelper alma::acs::logging::table::LogTableRowSorter::logLevel = LogTypeHelper.TRACE [private] |
1.6.2