Class ConfirmButton
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.Composite<VButton>
-
- org.vaadin.firitin.components.button.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 Summary
Constructors Constructor Description ConfirmButton(String buttonCaption, com.vaadin.flow.server.Command action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCancelText()StringgetConfirmationDescription()StringgetConfirmationPrompt()StringgetOkText()protected ConfirmationDialogprompt()voidsetCancelText(String cancelText)voidsetConfirmationDescription(String description)voidsetConfirmationPrompt(String confirmationPrompt)voidsetOkText(String okText)ConfirmButtonwithCancelText(String cancelText)ConfirmButtonwithConfirmationDescription(String description)ConfirmButtonwithConfirmationPrompt(String confirmationPrompt)ConfirmButtonwithConfirmHandler(com.vaadin.flow.server.Command handler)ConfirmButtonwithOKText(String okText)-
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContent
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
-
-
-
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)
-
prompt
protected ConfirmationDialog prompt()
-
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()
-
withOKText
public ConfirmButton withOKText(String okText)
-
setOkText
public void setOkText(String okText)
-
getOkText
public String getOkText()
-
withCancelText
public ConfirmButton withCancelText(String cancelText)
-
getCancelText
public String getCancelText()
-
setCancelText
public void setCancelText(String cancelText)
-
-