Class ActionGroupEnabler

  • All Implemented Interfaces:
    ElementEnabler

    public class ActionGroupEnabler
    extends Object
    implements ElementEnabler

    A specialized implementation of the ElementEnabler interface that can change the enabled state of action groups.

    An instance of this class is initialized with the name of the action group it should manipulate. The implementation of the setEnabledState() method obtains the current ActionStore object from the BeanContext managed by the passed in ComponentBuilderData object. This object is then used to change the enabled state of the action group in question accordingly.

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

      • ActionGroupEnabler

        public ActionGroupEnabler​(String groupName)
        Creates a new instance of ActionGroupEnabler and initializes it with the name of the action group it is responsible for.
        Parameters:
        groupName - the name of the action group (must not be null
        Throws:
        IllegalArgumentException - if the group name is null
    • Method Detail

      • getActionGroupName

        public String getActionGroupName()
        Returns the name of the action group that is manipulated by this enabler.
        Returns:
        the name of the affected action group