Package com.vaadin.flow.component.grid
Class CancelEditConfirmDialog
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.dialog.Dialog
com.vaadin.flow.component.grid.CancelEditConfirmDialog
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.dialog.DialogVariant>,Serializable
public class CancelEditConfirmDialog
extends com.vaadin.flow.component.dialog.Dialog
Dialog to confirm canceling an edit operation.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.dialog.Dialog
com.vaadin.flow.component.dialog.Dialog.ClosedEvent, com.vaadin.flow.component.dialog.Dialog.DialogCloseActionEvent, com.vaadin.flow.component.dialog.Dialog.DialogDraggedEvent, com.vaadin.flow.component.dialog.Dialog.DialogFooter, com.vaadin.flow.component.dialog.Dialog.DialogHeader, com.vaadin.flow.component.dialog.Dialog.DialogResizeEvent, com.vaadin.flow.component.dialog.Dialog.OpenedChangeEvent -
Constructor Summary
ConstructorsConstructorDescriptionCancelEditConfirmDialog(String text, String confirmText, String cancelText, com.vaadin.flow.function.SerializableRunnable onConfirmCallback, com.vaadin.flow.function.SerializableRunnable onCancelCallback) Constructor with message, confirm text, cancel text, confirm callback and cancel callback. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.button.ButtonGet the cancel button.com.vaadin.flow.component.button.ButtonGet the confirm button.com.vaadin.flow.component.html.ParagraphGet the message.Methods inherited from class com.vaadin.flow.component.dialog.Dialog
add, addAttachListener, addClosedListener, addComponentAtIndex, addDetachListener, addDialogCloseActionListener, addDraggedListener, addOpenedChangeListener, addResizeListener, close, getAriaLabel, getFooter, getHeader, getHeaderTitle, getHeight, getLeft, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getModality, getOverlayRole, getRole, getStyle, getTop, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, onAttach, open, removeAll, setAriaLabel, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeaderTitle, setHeight, setLeft, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setModality, setOpened, setOverlayRole, setResizable, setRole, setTop, setVisible, setWidthMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, remove, removeMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
getHeightUnit, getWidthUnit, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariants, setThemeVariant, setThemeVariants, setThemeVariants
-
Constructor Details
-
CancelEditConfirmDialog
public CancelEditConfirmDialog(String text, String confirmText, String cancelText, com.vaadin.flow.function.SerializableRunnable onConfirmCallback, com.vaadin.flow.function.SerializableRunnable onCancelCallback) Constructor with message, confirm text, cancel text, confirm callback and cancel callback.- Parameters:
text- the message to displayconfirmText- the text for the confirm buttoncancelText- the text for the cancel buttononConfirmCallback- the callback to run when the confirm button is clickedonCancelCallback- the callback to run when the cancel button is clicked
-
-
Method Details
-
getMessage
public com.vaadin.flow.component.html.Paragraph getMessage()Get the message.- Returns:
- the message
-
getConfirmButton
public com.vaadin.flow.component.button.Button getConfirmButton()Get the confirm button.- Returns:
- the confirm button
-
getCancelButton
public com.vaadin.flow.component.button.Button getCancelButton()Get the cancel button.- Returns:
- the cancel button
-