public class FilterList extends TaurusDirectory implements IFilterList
ATTRIBUTE_CHILD_RESOURCE_ID, ELEMENT_CHILD_RESOURCE| 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 |
deleteFilters()
Remove the ft_filters.xml file from the workspace.
|
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. |
static FilterList |
getInstance()
Creates a new instance of this Class or returns the existing one.
|
int |
indexOf(IFilter pFilter)
|
void |
loadFilters()
load the filters from the filters.xml file under the internal TAURUS
project
|
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 all defined filters in the filters.xml file under the internal
TAURUS project
|
void |
setFilter(IFilter pFilter)
Currently only notifies observers that a filter has been updated.
|
void |
setFilters(java.util.List<IFilter> pFilters)
Deprecated.
|
void |
sortList(int pDirection)
Sorts the list of filters alphabetically.
|
addChild, getResourceID, notifyObservers, saveChildrenaddObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserversequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddObserver, deleteObserverpublic static FilterList getInstance()
public void addFilter(IFilter pFilter, boolean pSaveFilters, boolean pNotify) throws TaurusCoreException
IFilterListIFilter to the IFilterList.addFilter in interface IFilterListpFilter - 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 failspublic void addFilter(java.util.List<IFilter> pFilters, boolean pSaveFilters, boolean pNotify) throws TaurusCoreException
IFilterListIFilter to the IFilterList.addFilter in interface IFilterListpFilters - 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 failspublic void addFilter(IFilter pFilter, boolean pSaveFilters, boolean pNotify, int pIndex) throws TaurusCoreException
IFilterListIFilter to the IFilterList at the given
position.addFilter in interface IFilterListpFilter - 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 failspublic void addFilter(java.util.List<IFilter> pFilters, boolean pSaveFilters, boolean pNotify, int pIndex) throws TaurusCoreException
IFilterListIFilter to the IFilterList at the given
position.addFilter in interface IFilterListpFilters - 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 failspublic void moveFilter(IFilter pFilter, boolean pSaveFilters, boolean pNotify, int pIndex) throws TaurusCoreException
IFilterListIFilter to the IFilterList at the given
position.moveFilter in interface IFilterListpFilter - 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 failspublic void moveFilter(java.util.List<IFilter> pFilters, boolean pSaveFilters, boolean pNotify, int pIndex) throws TaurusCoreException
IFilterListIFilters to the IFilterList list at the
given position.moveFilter in interface IFilterListpFilters - 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 failspublic void setFilter(IFilter pFilter)
pFilter - the updated filterpublic void removeFilter(IFilter pFilter) throws TaurusCoreException
IFilterListIFilter from the IFilterList.removeFilter in interface IFilterListpFilter - filter to be removedTaurusCoreException - if updating the filter cache failspublic void removeFilter(java.util.List<IFilter> pFilters) throws TaurusCoreException
IFilterListIFilters from the IFilterList.removeFilter in interface IFilterListpFilters - filters to be removedTaurusCoreException - if updating the filter cache failspublic IFilter getFilter(java.lang.String pFilterID)
IFilterListIFilter id from the
IFilterList.getFilter in interface IFilterListpFilterID - id of the filterpublic java.util.List<IFilter> getFilters() throws TaurusCoreException
IFilterListIFilters.getFilters in interface IFilterListTaurusCoreException - if loading the filter cache fails@Deprecated public void setFilters(java.util.List<IFilter> pFilters)
setFilters in interface IFilterListpFilters - the list of filters to setpublic void loadFilters()
throws TaurusCoreException
loadFilters in interface IFilterListTaurusCoreException - if loading the filter cache failspublic void saveFilters()
throws TaurusCoreException
saveFilters in interface IFilterListTaurusCoreException - if saving the filter cache failspublic void deleteFilters()
throws TaurusCoreException
IFilterListdeleteFilters in interface IFilterListTaurusCoreException - if updating the filter cache failspublic int indexOf(IFilter pFilter)
IFilterListindexOf in interface IFilterListpFilter - the IFilter-1public void sortList(int pDirection)
pDirection - the sort direction. Either
FilterController.SORT_DIR_ASCENDING or
FilterController.SORT_DIR_DESCENDING.Copyright © 2015 Micro Focus GmbH. All rights reserved.