Class SeparatorTag

  • All Implemented Interfaces:
    ConditionalTag, org.apache.commons.jelly.Tag

    public class SeparatorTag
    extends FormBaseTag

    A simple tag handler class for creating a separator for menus, toolbars, and related components.

    The tag implemented by this handler class can appear in the body of a tag implementing the ActionContainer interface. It will invoke the addSeparator() method of this interface to cause a separator to be added to the corresponding container component.

    This tag does not support any attributes nor body content.

    Version:
    $Id: SeparatorTag.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Constructor Detail

      • SeparatorTag

        public SeparatorTag()
    • Method Detail

      • process

        protected void process()
                        throws org.apache.commons.jelly.JellyTagException,
                               FormBuilderException
        Executes this tag. Adds a separator to the nesting container.
        Specified by:
        process in class FormBaseTag
        Throws:
        org.apache.commons.jelly.JellyTagException - if the tag is not correctly nested
        FormBuilderException - if an error occurs creating the separator
      • getActionBuilder

        protected ActionBuilder getActionBuilder()
        Returns a reference to the current ActionBuilder instance. This instance is expected to be placed in the Jelly context.
        Returns:
        the current action builder
      • getActionManager

        protected ActionManager getActionManager()
        Convenience method for obtaining a reference to the current ActionManager.
        Returns:
        the current action manager