public interface IFilterList
IFilters defined within an ITaurusApplication.
An ITaurusApplication does not know all the children at the
beginning. IFilters become cached right after the creation.
The IFilterList handles the caching and loading of IFilters.
It is intended to use the ft_filters.xml-file in the workspace for caching
IFilters.
This interface is not intended to be implemented by clients.
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(IFilter pFilter,
boolean pSaveFilters,
boolean pNotify)
Add a the given
IFilter to the IFilterList. |
void |
addFilter(IFilter pFilter,
boolean pSaveFilters,
boolean pNotify,
int pIndex)
Add the given
IFilter to the IFilterList at the given
position. |
void |
addFilter(java.util.List<IFilter> pFilters,
boolean pSaveFilters,
boolean pNotify)
Add a the given
IFilter to the IFilterList. |
void |
addFilter(java.util.List<IFilter> pFilters,
boolean pSaveFilters,
boolean pNotify,
int pIndex)
Add the given
IFilter to the IFilterList at the given
position. |
void |
addObserver(java.util.Observer pObserver)
Add the given observer to this class.
|
void |
deleteFilters()
Remove the ft_filters.xml file from the workspace.
|
void |
deleteObserver(java.util.Observer pObserver)
Delete the given observer for this class.
|
IFilter |
getFilter(java.lang.String pFilterID)
Get the filter with the given
IFilter id from the
IFilterList. |
java.util.List<IFilter> |
getFilters()
Gets the list of all currently loaded
IFilters. |
int |
indexOf(IFilter pFilter)
|
void |
loadFilters()
Load the
IFilterList from the ft_filters.xml file in the
workspace. |
void |
moveFilter(IFilter pFilter,
boolean pSaveFilters,
boolean pNotify,
int pIndex)
Move the given
IFilter to the IFilterList at the given
position. |
void |
moveFilter(java.util.List<IFilter> pFilters,
boolean pSaveFilters,
boolean pNotify,
int pIndex)
Move the given
IFilters to the IFilterList list at the
given position. |
void |
removeFilter(IFilter pFilter)
Remove the given
IFilter from the IFilterList. |
void |
removeFilter(java.util.List<IFilter> pFilters)
Remove the given
IFilters from the IFilterList. |
void |
saveFilters()
Save the
IFilterList to the ft_filters.xml file in the workspace. |
void |
setFilters(java.util.List<IFilter> pFilters)
Deprecated.
does not properly add the filters to the directory. Use
addFilter(...) instead. |
void addFilter(IFilter pFilter, boolean pSaveFilters, boolean pNotify) throws TaurusCoreException
IFilter to the IFilterList.pFilter - filter to be addedpSaveFilters - 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 updating the filter cache failsvoid addFilter(java.util.List<IFilter> pFilters, boolean pSaveFilters, boolean pNotify) throws TaurusCoreException
IFilter to the IFilterList.pFilters - filters to be addedpSaveFilters - 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 updating the filter cache failsvoid addFilter(IFilter pFilter, boolean pSaveFilters, boolean pNotify, int pIndex) throws TaurusCoreException
IFilter to the IFilterList at the given
position.pFilter - filter to be addedpSaveFilters - 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 updating the filter cache failsvoid addFilter(java.util.List<IFilter> pFilters, boolean pSaveFilters, boolean pNotify, int pIndex) throws TaurusCoreException
IFilter to the IFilterList at the given
position.pFilters - filters to be addedpSaveFilters - 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 updating the filter cache failsvoid moveFilter(IFilter pFilter, boolean pSaveFilters, boolean pNotify, int pIndex) throws TaurusCoreException
IFilter to the IFilterList at the given
position.pFilter - filter to be addedpSaveFilters - 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 updating the filter cache failsvoid moveFilter(java.util.List<IFilter> pFilters, boolean pSaveFilters, boolean pNotify, int pIndex) throws TaurusCoreException
IFilters to the IFilterList list at the
given position.pFilters - filters to be addedpSaveFilters - 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 updating the filter cache failsvoid removeFilter(IFilter pFilter) throws TaurusCoreException
IFilter from the IFilterList.pFilter - filter to be removedTaurusCoreException - if updating the filter cache failsvoid removeFilter(java.util.List<IFilter> pFilters) throws TaurusCoreException
IFilters from the IFilterList.pFilters - filters to be removedTaurusCoreException - if updating the filter cache failsjava.util.List<IFilter> getFilters() throws TaurusCoreException
IFilters.TaurusCoreException - if loading the filter cache fails@Deprecated void setFilters(java.util.List<IFilter> pFilters)
addFilter(...) instead.pFilters - the list of filters to setIFilter getFilter(java.lang.String pFilterID) throws TaurusCoreException
IFilter id from the
IFilterList.pFilterID - id of the filterTaurusCoreException - if loading the filter cache failsint indexOf(IFilter pFilter)
pFilter - the IFilter-1void addObserver(java.util.Observer pObserver)
pObserver - observervoid deleteObserver(java.util.Observer pObserver)
pObserver - observervoid loadFilters()
throws TaurusCoreException
IFilterList from the ft_filters.xml file in the
workspace.TaurusCoreException - if loading the filter cache failsvoid saveFilters()
throws TaurusCoreException
IFilterList to the ft_filters.xml file in the workspace.TaurusCoreException - if saving the filter cache failsvoid deleteFilters()
throws TaurusCoreException
TaurusCoreException - if updating the filter cache failsCopyright © 2015 Micro Focus GmbH. All rights reserved.