public class FilterController
extends java.lang.Object
IFilter instances of a
loaded AWM application.| Modifier and Type | Field and Description |
|---|---|
static int |
SORT_DIR_ASCENDING
Ascending sort order.
|
static int |
SORT_DIR_DESCENDING
Descending sort order.
|
| Constructor and Description |
|---|
FilterController() |
| Modifier and Type | Method and Description |
|---|---|
static void |
execFilterAdd(IFilter pFilter,
boolean pSaveFilter,
boolean pNotify)
Add a the given filter to the TAURUS filter list.
|
static void |
execFilterAdd(IFilter pFilter,
boolean pSaveFilter,
boolean pNotify,
int pIndex)
Add the given filter to the TAURUS filter list at the given position.
|
static void |
execFilterAdd(java.util.List<IFilter> pFilters,
boolean pSaveFilter,
boolean pNotify)
Add the given filters to the TAURUS filter list.
|
static void |
execFilterAdd(java.util.List<IFilter> pFilters,
boolean pSaveFilter,
boolean pNotify,
int pIndex)
Add the given filters to the TAURUS filter list at the given position.
|
static void |
execFilterMove(IFilter pFilter,
boolean pSaveFilter,
boolean pNotify,
int pIndex)
Move the given filter to the TAURUS filter list at the given position.
|
static void |
execFilterMove(java.util.List<IFilter> pFilters,
boolean pSaveFilter,
boolean pNotify,
int pIndex)
Move the given filters to the TAURUS filter list at the given position.
|
static void |
execFilterRemove(IFilter pFilter)
Remove the given filter from the TAURUS filter list.
|
static void |
execFilterRemove(java.util.List<IFilter> pFilters)
Remove the given filters from the TAURUS filter list.
|
static IFilter |
getFilter(java.lang.String pFilterID)
|
static int |
getFilterListSize()
Gets the number of existing filters of the currently loaded application.
|
static int |
indexOf(IFilter pFilter)
Returns the index of the given filter or
-1 if it is not in
the filter list. |
static void |
setFilter(IFilter pFilter)
Call the
FilterList.setFilter(IFilter). |
static void |
sortFilterList(int pDirection)
Sorts the list of filters alphabetically.
|
public static final int SORT_DIR_ASCENDING
public static final int SORT_DIR_DESCENDING
public static void execFilterAdd(IFilter pFilter, boolean pSaveFilter, boolean pNotify) throws TaurusCoreException
pFilter - filter to be addedpSaveFilter - if true save the filter list to the
ft_filters.xml file in the workspacepNotify - if true notify the observers of the filter listTaurusCoreException - if saving the added filter into cache failspublic static void execFilterAdd(IFilter pFilter, boolean pSaveFilter, boolean pNotify, int pIndex) throws TaurusCoreException
pFilter - filter to be addedpSaveFilter - if true save the filter list to the
ft_filters.xml file in the workspacepNotify - if true notify the observers of the filter listpIndex - position at which the filter should be addedTaurusCoreException - if saving the added filter into cache failspublic static void execFilterAdd(java.util.List<IFilter> pFilters, boolean pSaveFilter, boolean pNotify) throws TaurusCoreException
pFilters - filters to be addedpSaveFilter - if true save the filter list to the
ft_filters.xml file in the workspacepNotify - if true notify the observers of the filter listTaurusCoreException - if saving the added filter into cache failspublic static void execFilterAdd(java.util.List<IFilter> pFilters, boolean pSaveFilter, boolean pNotify, int pIndex) throws TaurusCoreException
pFilters - filters to be addedpSaveFilter - if true save the filter list to the
ft_filters.xml file in the workspacepNotify - if true notify the observers of the filter listpIndex - position at which the filters should be addedTaurusCoreException - if saving the added filter into cache failspublic static void execFilterMove(IFilter pFilter, boolean pSaveFilter, boolean pNotify, int pIndex) throws TaurusCoreException
pFilter - filter to be movedpSaveFilter - if true save the filter list to the
ft_filters.xml file in the workspacepNotify - if true notify the observers of the filter listpIndex - position at which the filter should be movedTaurusCoreException - if saving the moved filter into cache failspublic static void execFilterMove(java.util.List<IFilter> pFilters, boolean pSaveFilter, boolean pNotify, int pIndex) throws TaurusCoreException
pFilters - filters to be movedpSaveFilter - if true save the filter list to the
ft_filters.xml file in the workspacepNotify - if true notify the observers of the filter listpIndex - position at which the filters should be movedTaurusCoreException - if saving the moved filter into cache failspublic static int indexOf(IFilter pFilter)
-1 if it is not in
the filter list.pFilter - the IFilter-1public static void execFilterRemove(IFilter pFilter) throws TaurusCoreException
pFilter - filter to be removedTaurusCoreException - if saving the filter cache fails after the operationpublic static void execFilterRemove(java.util.List<IFilter> pFilters) throws TaurusCoreException
pFilters - filter to be removedTaurusCoreException - if saving the filter cache fails after the operationpublic static void setFilter(IFilter pFilter)
FilterList.setFilter(IFilter).pFilter - the updated filterpublic static int getFilterListSize()
throws TaurusCoreException
TaurusCoreException - if an exception occurs while loading the filter cachepublic static void sortFilterList(int pDirection)
pDirection - the sort direction. Either SORT_DIR_ASCENDING or
SORT_DIR_DESCENDING.public static IFilter getFilter(java.lang.String pFilterID)
pFilterID - id of the filterCopyright © 2015 Micro Focus GmbH. All rights reserved.