Class AbstractButton

    • Field Detail

      • disabled

        public boolean disabled
    • Constructor Detail

      • AbstractButton

        public AbstractButton()
        Creates new ButtonWA
    • Method Detail

      • init

        public void init​(String label,
                         String action,
                         boolean disabled)
        Method declaration
        Specified by:
        init in interface Button
        Parameters:
        label -
        action -
        disabled -
      • getIconsPath

        public String getIconsPath()
        Method declaration
        Returns:
      • setRootImagePath

        public void setRootImagePath​(String s)
        Method declaration
        Specified by:
        setRootImagePath in interface Button
        Parameters:
        s -
      • renderButtonHtml

        protected abstract String renderButtonHtml()
      • setActionPreProcessing

        public void setActionPreProcessing​(String actionPreProcessing)
        Description copied from interface: Button
        This method permits to apply some process before calling the action. The actionPreProcessing string must be a javascript routine in which the parameter {action} will be replaced by the specified action on Button.init(String, String, boolean) method.
        Specified by:
        setActionPreProcessing in interface Button
        Parameters:
        actionPreProcessing - the javascript routine.
      • setClasses

        public void setClasses​(String classes)
        Description copied from interface: Button
        Sets css classes to the HTML TAG representing the button.
        Specified by:
        setClasses in interface Button
        Parameters:
        classes - the css classes.
      • getAction

        protected String getAction()
        Gets the action with pre processing if any.
        Returns:
        the action as string.
      • getClasses

        protected String getClasses()