Class BorderConstraintsTag
- java.lang.Object
-
- org.apache.commons.jelly.TagSupport
-
- net.sf.jguiraffe.gui.builder.components.tags.FormBaseTag
-
- net.sf.jguiraffe.gui.builder.components.tags.ConstraintsTag
-
- net.sf.jguiraffe.gui.builder.components.tags.BorderConstraintsTag
-
- All Implemented Interfaces:
ConditionalTag
,org.apache.commons.jelly.Tag
public class BorderConstraintsTag extends ConstraintsTag
A special tag handler implementation for creating constraints object for a
.BorderLayout
This is a quite simple tag that only supports the
name
attribute, which must be set to the desired border constraints name. The passed in value is not checked by this tag, this will be done later by the layout object. The tag can be placed inside the body of a component tag whose owning container uses a border layout.- Version:
- $Id: BorderConstraintsTag.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Constructor Summary
Constructors Constructor Description BorderConstraintsTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
createConstraints(ComponentManager manager)
Creates the constraints object.String
getName()
Returns the name of the border constraints.void
setName(String name)
Setter method for the name attribute.-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.ConstraintsTag
process
-
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
-
getName
public String getName()
Returns the name of the border constraints.- Returns:
- the constraints name
-
setName
public void setName(String name)
Setter method for the name attribute.- Parameters:
name
- the attribute value
-
createConstraints
protected Object createConstraints(ComponentManager manager) throws FormBuilderException, org.apache.commons.jelly.MissingAttributeException
Creates the constraints object. This implementation returns the string that was passed in through thename
attribute.- Specified by:
createConstraints
in classConstraintsTag
- Parameters:
manager
- the component manager- Returns:
- the constraints object
- Throws:
FormBuilderException
- if an error occursorg.apache.commons.jelly.MissingAttributeException
- if a required attribute is missing
-
-