Class ConfirmButton

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, Serializable
    Direct Known Subclasses:
    DeleteButton

    public class ConfirmButton
    extends com.vaadin.flow.component.Composite<VButton>
    A button whose action is action is executed ofter showing a confirmation dialog.
    See Also:
    Serialized Form
    • Constructor Detail

      • ConfirmButton

        public ConfirmButton​(String buttonCaption,
                             com.vaadin.flow.server.Command action)
    • Method Detail

      • withConfirmHandler

        public ConfirmButton withConfirmHandler​(com.vaadin.flow.server.Command handler)
      • getConfirmationPrompt

        public String getConfirmationPrompt()
      • setConfirmationPrompt

        public void setConfirmationPrompt​(String confirmationPrompt)
      • withConfirmationPrompt

        public ConfirmButton withConfirmationPrompt​(String confirmationPrompt)
      • withConfirmationDescription

        public ConfirmButton withConfirmationDescription​(String description)
      • setConfirmationDescription

        public void setConfirmationDescription​(String description)
      • getConfirmationDescription

        public String getConfirmationDescription()
      • setOkText

        public void setOkText​(String okText)
      • getOkText

        public String getOkText()
      • getCancelText

        public String getCancelText()
      • setCancelText

        public void setCancelText​(String cancelText)