Class ToolButtonTag

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

    public class ToolButtonTag
    extends ActionControlTag

    A specific tag handler class for creating toolbar buttons.

    Tags represented by this class can appear in the body of a <toolbar> tag. They define a button to be added to the enclosing toolbar. A button can either be directly defined using attributes like text or resgrp that are inherited from the base class. Alternatively a button can be associated with an action object; then the actionName attribute must be provided.

    This tag does not define any attributes in addition to the ones inherited from its super classes.

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

      • ToolButtonTag

        public ToolButtonTag()
    • Method Detail

      • getContainerClass

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