Class 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 Detail

      • BorderConstraintsTag

        public BorderConstraintsTag()
    • 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 the name attribute.
        Specified by:
        createConstraints in class ConstraintsTag
        Parameters:
        manager - the component manager
        Returns:
        the constraints object
        Throws:
        FormBuilderException - if an error occurs
        org.apache.commons.jelly.MissingAttributeException - if a required attribute is missing