|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.guiclient.model.item.itemfilter.ItemFilterMgr
public class ItemFilterMgr
The item filter manager enables the filtering of items according to a
variety of filters (ItemFilter) that have been installed for this manager.
It provides methods to check if an item is accepted by the filters and may
return components that can be used to affect the mode of operation of the filters.
An item is declined by the manager if one of the installed filters rejects the item
(i. e. logical and conjunction of the filters).
| Field Summary | |
|---|---|
protected java.util.List |
filterList
Filter list (contains ItemFilter objects) |
| Constructor Summary | |
|---|---|
ItemFilterMgr()
Default constructor. |
|
ItemFilterMgr(Plugin plugin)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
acceptsItem(Item item)
Determines if an item is accepted by the installed filters. |
void |
addFilter(ItemFilter filter)
Adds a filter. |
void |
apply(ItemFilter filter)
(Re-)applies the filter. |
javax.swing.JComponent |
getConfigurationPane()
Gets the panel that contains the various filter configuration components. |
java.util.List |
getFilterList()
Gets the filter list. |
JaspiraToolbar |
getFilterToolbar()
Gets the filter toolbar. |
Plugin |
getPlugin()
Gets the plugin the item filter manager is associated with (to be used as event source). |
protected void |
initializeComponents()
Initializes the filter configuration components and the filter toolbar. |
void |
setFilterListener(ItemFilterListener filterListener)
Sets the filter listener. |
void |
setPlugin(Plugin plugin)
Sets the plugin the item filter manager is associated with (to be used as event source). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List filterList
ItemFilter objects)
| Constructor Detail |
|---|
public ItemFilterMgr()
public ItemFilterMgr(Plugin plugin)
plugin - Plugin the item filter manager is associated with (to be used as event source)| Method Detail |
|---|
protected void initializeComponents()
public Plugin getPlugin()
getPlugin in interface ItemFilterHolderpublic void setPlugin(Plugin plugin)
public boolean acceptsItem(Item item)
item - Item to check
public void apply(ItemFilter filter)
apply in interface ItemFilterHolderfilter - Filter that wishes to be applied or nullpublic void setFilterListener(ItemFilterListener filterListener)
public JaspiraToolbar getFilterToolbar()
public javax.swing.JComponent getConfigurationPane()
public void addFilter(ItemFilter filter)
filter - The filter to addpublic java.util.List getFilterList()
ItemFilter objects
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||