Class TableSelectionHandlerTag
- 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.components.tags.table.TableSelectionHandlerTag
-
- All Implemented Interfaces:
ConditionalTag
,PropertySupport
,org.apache.commons.jelly.DynaTag
,org.apache.commons.jelly.impl.BeanSource
,org.apache.commons.jelly.Tag
public class TableSelectionHandlerTag extends UseBeanBaseTag
A tag handler class for defining selection handlers for a table component.
With this tag a concrete implementation of the
interface can be specified that will be used for either renderer or editor components (depending on the value of the booleanTableSelectionHandler
editor
attribute) of the associated table. The tag can appear in the body of a
tag only.TableTag
By extending
UseBeanBaseTag
the typical attributes for defining beans (class
orref
) are supported. In addition theeditor
attribute defines, whichTableSelectionHandler
is to be set on the associated table:- a value of false (which is also the default value) indicates
that the
TableSelectionHandler
for renderer components is to set. - a value of true in contrast will set the
TableSelectionHandler
for editor components.
- Version:
- $Id: TableSelectionHandlerTag.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Field Summary
-
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 TableSelectionHandlerTag()
Creates a new instance ofTableSelectionHandlerTag
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
passResults(Object bean)
Passes theTableSelectionHandler
created by this tag to the enclosing table tag.-
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
-
-
-
-
Method Detail
-
passResults
protected boolean passResults(Object bean) throws org.apache.commons.jelly.JellyTagException
Passes theTableSelectionHandler
created by this tag to the enclosing table tag. This implementation looks for theTableTag
this tag is nested into. It then sets the corresponding handler. If this tag is not nested inside aTableTag
and novar
attribute is set, an exception will be thrown.- Overrides:
passResults
in classUseBeanBaseTag
- Parameters:
bean
- the resulting bean- Returns:
- a flag whether the bean could be passed to a target
- Throws:
org.apache.commons.jelly.JellyTagException
- if the tag is incorrectly used
-
-