Public Member Functions | |
FiltersVector () | |
void | addFilter (Filter f, boolean active) |
void | setFilters (Filter[] f, boolean[] active) |
void | setFilters (FiltersVector flts) |
int[] | getAppliedFiltersIndexes () |
boolean | hasActiveFilters () |
boolean | isActive (int n) |
boolean | applyFilters (ILogEntry log) |
String | getFilterString () |
void | clear () |
void | loadFilters (File f, boolean eraseFilters, String fileName) throws Exception |
void | saveFilters (File f) throws IOException |
Filter | remove (int index) |
void | activateFilter (Filter f, boolean active) |
Private Member Functions | |
File | convertOldFilterFile (File oldFile) throws Exception |
Private Attributes | |
Vector< Integer > | activeFilters = new Vector<Integer>() |
FiltersList is a Vector. It uses another vector to store the indexes of the active filters
|
Constructor |
|
Activate/deactivate a filter
|
|
Add a filter to the vector. If it is active, its index is added to the vector of the active filters
|
|
Apply the (active) filters to a log
|
|
Delete all the filters (and the active vector) |
|
Convert a filter file from the old to the new format The difference between the old stile and this new format is the presence of the history as well as the document type. At the present the history is not needed anymore but I keep this method for converting the xml type. NOTE: This method will be removed
|
|
Return the indexes of the active filters
|
|
Returns the filter(s) applied as a string.
|
|
Check if there are active filters
|
|
Return true if the filter is active
|
|
Load filters In case of errors an exception is thrown
|
|
Remove an element from the FiltersVector (We need to override this method because we need to keep the activeFilters aligned) |
|
Save the filters on a file
|
|
Set the filters in this vector to be the same of the passed vector
|
|
Set the filters in the vector deleting any other filter. The activeFilters vector is also updated
|
|
|