Class TableEditorValidationHandlerTag
- 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.TableEditorValidationHandlerTag
-
- All Implemented Interfaces:
ConditionalTag
,PropertySupport
,org.apache.commons.jelly.DynaTag
,org.apache.commons.jelly.impl.BeanSource
,org.apache.commons.jelly.Tag
public class TableEditorValidationHandlerTag extends UseBeanBaseTag
A tag handler class for defining the
to be used for a table component.TableEditorValidationHandler
With this tag - that can be placed in the body of a
- a component can be registered at a table that is triggered for every validation of user input. This component has the opportunity of reacting on validation errors or post-processing user input.TableTag
This tag is derived from
, so theUseBeanBaseTag
TableEditorValidationHandler
to be installed can either be defined directly by providing the fully qualified class name or as a reference to a variable in the Jelly context. In addition to the attributes inherited from the base class the following ones are supported:Attribute Description Optional validationErrorTitle Here the title of an error message can be specified that is displayed in case of validation errors. This text can be evaluated by the
object. It is also possible to define only the error message without defining a concrete implementation object. Then the platform-specific default implementation will be used that accesses this error message.TableEditorValidationHandler
yes validationErrorTitleres This attribute has the same purpose than the validationErrorTitle
attribute, but the title is set as a resource ID.yes validationErrorTitlegroup If the title of the validation error message box is specified as a resource ID, here the corresponding resource group can be defined. If this attribute is missing, the default resource group will be used. yes - Version:
- $Id: TableEditorValidationHandlerTag.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 TableEditorValidationHandlerTag()
Creates a new instance ofTableEditorValidationHandlerTag
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isOptional()
Indicates if this bean definition is optional.protected boolean
passResults(Object bean)
Passes the results of this tag.-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.UseBeanBaseTag
addIgnoreProperties, doTag, fetchBean, getAdditionalProperties, getAttributeStr, getBaseClass, getIfName, getUnlessName, 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 the results of this tag. This implementation tries to find the enclosing table tag and sets the editor validation handler.- Overrides:
passResults
in classUseBeanBaseTag
- Parameters:
bean
- the bean to be installed- Returns:
- a flag whether the bean could be passed to a target
- Throws:
org.apache.commons.jelly.JellyTagException
- if an error occurs
-
isOptional
protected boolean isOptional()
Indicates if this bean definition is optional. This is the case for this tag because it is possible to define only properties for the
without actually creating an implementation.TableEditorValidationHandler
- Overrides:
isOptional
in classUseBeanBaseTag
- Returns:
- the optional flag
-
-