|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.generic.description.DescriptionObjectImpl
org.openbp.common.generic.description.DisplayObjectImpl
org.openbp.guiclient.model.item.itemfilter.AbstractItemFilter
org.openbp.guiclient.model.item.itemfilter.ItemTypeFilter
public class ItemTypeFilter
Item type filter. The item type filter filters items according to their item type. The user may select the types to be filtered from the supported types. The filter will provide a toobar button for each supported item type in its configuration component.
| Field Summary |
|---|
| Fields inherited from interface org.openbp.common.generic.Copyable |
|---|
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW |
| Constructor Summary | |
|---|---|
ItemTypeFilter()
Default constructor. |
|
ItemTypeFilter(java.lang.String[] supportedItemTypes)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
acceptsItem(Item item)
Determines if an item is accepted by this filter. |
boolean |
acceptsItemType(java.lang.String itemType)
Determines if a particular item type is accepted by this filter. |
protected void |
addItemType(java.lang.String itemType)
Adds an item type to the filter. |
boolean |
containsItemType(java.lang.String itemType)
Determines if the filter contains the given item type. |
java.util.List |
getActions()
Gets the action list. |
javax.swing.JComponent |
getConfigurationComponent()
Gets the configuration component that can be used to configure the installed item filters. |
java.lang.String[] |
getSupportedItemTypeInfos()
Gets the supported item types. |
JaspiraToolbar |
getToolbar()
Gets the item type toolbar. |
boolean |
isActive()
Checks if the filter is active. |
protected void |
removeItemType(java.lang.String itemType)
Removes an item type from the filter. |
void |
setActive(boolean active)
Activates or deactivates the filter. |
void |
setEnabled(boolean enabled)
Enables or disables the filter controls. |
void |
setSupportedItemTypes(java.lang.String[] supportedItemTypes)
Sets the supported item types. |
| Methods inherited from class org.openbp.guiclient.model.item.itemfilter.AbstractItemFilter |
|---|
apply, getFilterManager, getIcon, getItemFilterResource, getPlugin, setFilterHolder, setPlugin |
| Methods inherited from class org.openbp.common.generic.description.DisplayObjectImpl |
|---|
copyFrom, getDisplayName, getDisplayText, setDisplayName |
| Methods inherited from class org.openbp.common.generic.description.DescriptionObjectImpl |
|---|
clone, compareTo, getDescription, getDescriptionEscape, getDescriptionText, getName, setDescription, setDescriptionEscape, setName, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openbp.common.generic.description.DisplayObject |
|---|
getDisplayName, setDisplayName |
| Methods inherited from interface org.openbp.common.generic.description.DescriptionObject |
|---|
clone, getDescription, getDescriptionText, getDisplayText, getName, setDescription, setName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public ItemTypeFilter()
public ItemTypeFilter(java.lang.String[] supportedItemTypes)
supportedItemTypes - List of supported item types| Method Detail |
|---|
public java.util.List getActions()
public java.lang.String[] getSupportedItemTypeInfos()
public void setSupportedItemTypes(java.lang.String[] supportedItemTypes)
public JaspiraToolbar getToolbar()
public boolean acceptsItem(Item item)
item - Item to check
public boolean acceptsItemType(java.lang.String itemType)
itemType - Item type to check
public javax.swing.JComponent getConfigurationComponent()
getConfigurationComponent in interface ItemFiltergetConfigurationComponent in class AbstractItemFilterpublic boolean isActive()
isActive in interface ItemFilterisActive in class AbstractItemFilterpublic void setActive(boolean active)
setActive in interface ItemFiltersetActive in class AbstractItemFilterpublic void setEnabled(boolean enabled)
public boolean containsItemType(java.lang.String itemType)
itemType - Item type to check
protected void addItemType(java.lang.String itemType)
itemType - Item type to addprotected void removeItemType(java.lang.String itemType)
itemType - Item type to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||