Class MenuItemTag

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

    public class MenuItemTag
    extends ActionControlTag

    A tag handler class that creates menu items.

    With this tag class menu items can be created. The corresponding tags must be nested inside menu tags. A menu item can be defined either by referencing an action or by manually setting the corresponding attributes. Refer also to the documentation of the base class.

    In addition to the attributes defined by the base class, this tag handler class does not support own attributes.

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

      • MenuItemTag

        public MenuItemTag()
    • Method Detail

      • getContainerClass

        protected Class<?> getContainerClass()
        Returns the container tag handler class this tag must be nested inside. This is the MenuTag class.
        Specified by:
        getContainerClass in class ActionControlTag
        Returns:
        the nesting container class
      • 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