Class NativeButton

All Implemented Interfaces:
AttachNotifier, BlurNotifier<NativeButton>, ClickNotifier<NativeButton>, DetachNotifier, Focusable<NativeButton>, FocusNotifier<NativeButton>, HasAriaLabel, HasComponents, HasElement, HasEnabled, HasSize, HasStyle, HasText, Serializable

@Tag("button") public class NativeButton extends HtmlContainer implements ClickNotifier<NativeButton>, Focusable<NativeButton>, HasAriaLabel
Component representing a <button> element.
Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • NativeButton

      public NativeButton()
      Creates a new empty button.
    • NativeButton

      public NativeButton(String text)
      Creates a button with the given text.
      Parameters:
      text - the button text
    • NativeButton

      public NativeButton(String text, ComponentEventListener<ClickEvent<NativeButton>> clickListener)
      Creates a button with the given text and click listener.
      Parameters:
      text - the button text
      clickListener - the click listener