Public Member Functions

alma.acs.logging.table.LogTableRowSorter Class Reference

Inheritance diagram for alma.acs.logging.table.LogTableRowSorter:
com.cosylab.logging.engine.Filterable

List of all members.

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 ()

Detailed Description

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.

Author:
acaproni

Constructor & Destructor Documentation

alma.acs.logging.table.LogTableRowSorter.LogTableRowSorter ( LogTableDataModel  model  ) 

Member Function Documentation

FiltersVector alma.acs.logging.table.LogTableRowSorter.getFilters (  ) 

Return the filters defined by the user

Returns:
The user defined filters

Implements com.cosylab.logging.engine.Filterable.

Referenced by alma.acs.logging.table.LogEntryTable.getFilters().

String alma.acs.logging.table.LogTableRowSorter.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.

Parameters:
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.

Parameters:
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties