Class ToolbarTag

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

    public class ToolbarTag
    extends SimpleComponentTag
    implements ActionContainer

    A specialized tag handler class for creating a toolbar component.

    This tag handler class uses the current ActionManager implementation for creating a new platform specific toolbar object. The toolbar is a normal GUI component that will be added to the enclosing container. A constraints object can be provided if needed. All attributes defined by the base class SimpleComponentTag can be used for this tag, too. Additional attributes are not supported.

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

      • ToolbarTag

        public ToolbarTag()
    • Method Detail

      • createComponent

        protected Object createComponent​(ComponentManager manager,
                                         boolean create)
                                  throws org.apache.commons.jelly.MissingAttributeException,
                                         FormBuilderException
        Creates the toolbar component. This implementation will use the current ActionManager to create a toolbar.
        Specified by:
        createComponent in class SimpleComponentTag
        Parameters:
        manager - the component manager (ignored by this tag)
        create - a flag if the component should be created or initialized
        Returns:
        the new toolbar
        Throws:
        org.apache.commons.jelly.MissingAttributeException - if a required attribute is missing
        FormBuilderException - if an error occurs
      • getContainer

        public Object getContainer()
        Returns the container object. This is the created toolbar.
        Specified by:
        getContainer in interface ActionContainer
        Returns:
        the action container object