Class ChainedEventFilterTag
- java.lang.Object
-
- org.apache.commons.jelly.TagSupport
-
- org.apache.commons.jelly.DynaTagSupport
-
- org.apache.commons.jelly.MapTagSupport
-
- org.apache.commons.jelly.tags.core.UseBeanTag
-
- net.sf.jguiraffe.gui.builder.components.tags.UseBeanBaseTag
-
- net.sf.jguiraffe.gui.builder.action.tags.EventFilterTag
-
- net.sf.jguiraffe.gui.builder.action.tags.ChainedEventFilterTag
-
- All Implemented Interfaces:
ConditionalTag
,PropertySupport
,org.apache.commons.jelly.DynaTag
,org.apache.commons.jelly.impl.BeanSource
,org.apache.commons.jelly.Tag
- Direct Known Subclasses:
AndEventFilterTag
,OrEventFilterTag
public class ChainedEventFilterTag extends EventFilterTag
A specialized event filter class that deals with chained filters, i.e. event filters that can child event filters.
This tag handler class adds an additional
addChildFilter
method to the methods inherited by its super class. This method will be called byEventFilterTag
if it detects that it is nested inside a chained filter definition.- Version:
- $Id: ChainedEventFilterTag.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Field Summary
-
Fields inherited from class net.sf.jguiraffe.gui.builder.action.tags.EventFilterTag
CURRENT_FILTER
-
Fields inherited from class net.sf.jguiraffe.gui.builder.components.tags.UseBeanBaseTag
ATTR_BEAN_CLASS, ATTR_BEAN_NAME, ATTR_CLASS, ATTR_IF_NAME, ATTR_REF, ATTR_UNLESS_NAME, ATTR_VAR
-
-
Constructor Summary
Constructors Constructor Description ChainedEventFilterTag()
Creates a new instance ofChainedEventFilterTag
.ChainedEventFilterTag(Class<?> defaultClass)
Creates a new instance ofChainedEventFilterTag
and sets the default class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChildFilter(EventFilter child)
Adds the specified event filter to the list of child filters of the current chained filter tag.protected boolean
passResults(Object bean)
Performs post processing of the new bean.-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.UseBeanBaseTag
addIgnoreProperties, doTag, fetchBean, getAdditionalProperties, getAttributeStr, getBaseClass, getIfName, getUnlessName, isOptional, processBean, setBaseClass, setProperty, useExistingBean
-
Methods inherited from class org.apache.commons.jelly.tags.core.UseBeanTag
addIgnoreProperty, convertToClass, getBean, getDefaultClass, getIgnorePropertySet, isIgnoreUnknownProperties, loadClass, newInstance, setBean, setBeanProperties, setIgnoreUnknownProperties, validateBeanProperties
-
Methods inherited from class org.apache.commons.jelly.MapTagSupport
createAttributes, getAttributes, setAttribute
-
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
-
-
-
-
Constructor Detail
-
ChainedEventFilterTag
public ChainedEventFilterTag()
Creates a new instance ofChainedEventFilterTag
.
-
ChainedEventFilterTag
public ChainedEventFilterTag(Class<?> defaultClass)
Creates a new instance ofChainedEventFilterTag
and sets the default class.- Parameters:
defaultClass
- the default class
-
-
Method Detail
-
addChildFilter
public void addChildFilter(EventFilter child)
Adds the specified event filter to the list of child filters of the current chained filter tag.- Parameters:
child
- the child filter
-
passResults
protected boolean passResults(Object bean) throws org.apache.commons.jelly.JellyTagException
Performs post processing of the new bean. This implementation adds the child filters to the new chained filter if there are any.- Overrides:
passResults
in classEventFilterTag
- Parameters:
bean
- the new bean- Returns:
- a flag whether the bean could be passed to a target
- Throws:
org.apache.commons.jelly.JellyTagException
- if an error occurs
-
-