Class LayoutTag
- java.lang.Object
-
- org.apache.commons.jelly.TagSupport
-
- net.sf.jguiraffe.gui.builder.components.tags.FormBaseTag
-
- net.sf.jguiraffe.gui.builder.components.tags.LayoutTag
-
- All Implemented Interfaces:
ConditionalTag
,org.apache.commons.jelly.Tag
- Direct Known Subclasses:
BorderLayoutTag
,ButtonLayoutTag
,PercentLayoutTag
public abstract class LayoutTag extends FormBaseTag
A base tag handler class for layout tags.
A layout tag has to create a specific layout object and pass it to the enclosing container. This base class already handles the latter part, i.e. correctly initializing the hosting container object. A concrete sub class will have to implement the creation of the specific layout object.
- Version:
- $Id: LayoutTag.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Constructor Summary
Constructors Constructor Description LayoutTag()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Object
createLayout(ComponentManager manager)
Creates the specific layout object.protected void
process()
Executes this tag.-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.FormBaseTag
canProcess, canProcess, convertToClass, convertToNumberWithUnit, convertToNumberWithUnit, doTag, findContainer, getBuilderData, getBuilderData, getIfName, getResourceText, getResourceText, getUnlessName, processBeforeBody, setIfName, setUnlessName
-
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
-
process
protected void process() throws org.apache.commons.jelly.JellyTagException, FormBuilderException
Executes this tag. This implementation fetches the corresponding container, creates the layout and ensures that it is set in the container.- Specified by:
process
in classFormBaseTag
- Throws:
FormBuilderException
- if an error occursorg.apache.commons.jelly.JellyTagException
- if a jelly specific error occurs
-
createLayout
protected abstract Object createLayout(ComponentManager manager) throws FormBuilderException, org.apache.commons.jelly.JellyTagException
Creates the specific layout object. This method must be defined in concrete sub classes, it is called by this tag's main execution method.- Parameters:
manager
- the component manager- Returns:
- the new layout object
- Throws:
FormBuilderException
- if an error occursorg.apache.commons.jelly.JellyTagException
- if the tag is incorrectly used
-
-