Class GeneratedVaadinButton<R extends GeneratedVaadinButton<R>>

    • Constructor Detail

      • GeneratedVaadinButton

        public GeneratedVaadinButton​(String text)
        Sets the given string as the content of this component.
        Parameters:
        text - the text content to set
        See Also:
        HasText.setText(String)
      • GeneratedVaadinButton

        public GeneratedVaadinButton()
        Default constructor.
    • Method Detail

      • addThemeVariants

        public void addThemeVariants​(ButtonVariant... variants)
        Adds theme variants to the component.
        Parameters:
        variants - theme variants to add
      • removeThemeVariants

        public void removeThemeVariants​(ButtonVariant... variants)
        Removes theme variants from the component.
        Parameters:
        variants - theme variants to remove
      • isAutofocusBoolean

        protected boolean isAutofocusBoolean()

        Description copied from corresponding location in WebComponent:

        Specify that this control should have input focus when the page loads.

        This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.

        Returns:
        the autofocus property from the webcomponent
      • setAutofocus

        protected void setAutofocus​(boolean autofocus)

        Description copied from corresponding location in WebComponent:

        Specify that this control should have input focus when the page loads.

        Parameters:
        autofocus - the boolean value to set
      • isDisabledBoolean

        protected boolean isDisabledBoolean()

        Description copied from corresponding location in WebComponent:

        If true, the user cannot interact with this element.

        This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.

        Returns:
        the disabled property from the webcomponent
      • setDisabled

        @Deprecated
        protected void setDisabled​(boolean disabled)
        Deprecated.
        Since 3.0, this API is deprecated in favor of HasEnabled.setEnabled(boolean)

        Description copied from corresponding location in WebComponent:

        If true, the user cannot interact with this element.

        Parameters:
        disabled - the boolean value to set
      • remove

        protected void remove​(Component... components)
        Removes the given child components from this component.
        Parameters:
        components - The components to remove.
        Throws:
        IllegalArgumentException - if any of the components is not a child of this component.
      • removeAll

        protected void removeAll()
        Removes all contents from this component, this includes child components, text content as well as child elements that have been added directly to this component using the Element API.