Class PanelButtonImpl

  • All Implemented Interfaces:
    PanelButton

    public class PanelButtonImpl
    extends Object
    implements PanelButton
    button definitions for panels.
    Author:
    johntd
    • Constructor Detail

      • PanelButtonImpl

        public PanelButtonImpl​(PanelButton.BUTTONTYPE buttonType)
        create a enabled panel button of the given type. messageKey and id are set to the default values (see setButtonType())
        Parameters:
        buttonType - buttonType
      • PanelButtonImpl

        public PanelButtonImpl​(PanelButton.BUTTONTYPE buttonType,
                               boolean disabled)
        create a panel button of the given parameters. messageKey and id are set to the default values (see setButtonType())
        Parameters:
        buttonType - buttonType
        disabled - true of false
      • PanelButtonImpl

        public PanelButtonImpl​(PanelButton.BUTTONTYPE buttonType,
                               String messageKey)
        create a panel button of the given parameters. id is set to the default value (see setButtonType())
        Parameters:
        buttonType - buttonType
        messageKey - messageKey from the resourcebundle, if null default is used (see setButtonType())
      • PanelButtonImpl

        public PanelButtonImpl​(PanelButton.BUTTONTYPE buttonType,
                               String messageKey,
                               boolean disabled)
        create a panel button of the given parameters. id is set to the default value (see setButtonType())
        Parameters:
        buttonType - buttonType
        messageKey - messageKey from the resourcebundle, if null default is used (see setButtonType())
        disabled - true of false
      • PanelButtonImpl

        public PanelButtonImpl​(PanelButton.BUTTONTYPE buttonType,
                               String messageKey,
                               String id)
        create a panel button of the given parameters.
        Parameters:
        buttonType - buttonType
        messageKey - messageKey from the resourcebundle, if null default is used (see setButtonType())
        id - if null default is used (see setButtonType())
      • PanelButtonImpl

        public PanelButtonImpl​(PanelButton.BUTTONTYPE buttonType,
                               String messageKey,
                               String id,
                               boolean disabled)
        create a panel button of the given parameters.
        Parameters:
        buttonType - buttonType
        messageKey - messageKey from the resourcebundle, if null default is used (see setButtonType())
        id - if null default is used (see setButtonType())
        disabled - true of false
      • PanelButtonImpl

        public PanelButtonImpl​(PanelButton.BUTTONTYPE buttonType,
                               String messageKey,
                               String id,
                               boolean disabled,
                               String action)
        Create a panel button of the given parameters.
        Parameters:
        buttonType - buttonType
        messageKey - messageKey from the resourcebundle, if null default is used (see setButtonType())
        id - if null default is used (see setButtonType())
        disabled - true of false
        action - Action for the doPanelViewSubmit function in the generated HTML INPUT Tag
    • Method Detail

      • setMessageKey

        public void setMessageKey​(String messageKey)
        Description copied from interface: PanelButton
        set the messageKey.
        Specified by:
        setMessageKey in interface PanelButton
        Parameters:
        messageKey - messageKey
      • setId

        public void setId​(String id)
        Description copied from interface: PanelButton
        set the id.
        Specified by:
        setId in interface PanelButton
        Parameters:
        id - id
      • setDisabled

        public void setDisabled​(boolean disabled)
        Description copied from interface: PanelButton
        set the button enabled state.
        Specified by:
        setDisabled in interface PanelButton
        Parameters:
        disabled - true/false
      • getDisabled

        public boolean getDisabled()
        Description copied from interface: PanelButton
        return the button enabled state.
        Specified by:
        getDisabled in interface PanelButton
        Returns:
        disabled
      • getAction

        public String getAction()
        Description copied from interface: PanelButton
        Returns action for the doPanelViewSubmit function in the generated HTML INPUT Tag.
        Specified by:
        getAction in interface PanelButton
        Returns:
        action for the doPanelViewSubmit function in the generated HTML INPUT Tag
      • setAction

        public void setAction​(String action)
        Description copied from interface: PanelButton
        Set action for the doPanelViewSubmit function in the generated HTML INPUT Tag.
        Specified by:
        setAction in interface PanelButton
        Parameters:
        action - The action to set