@CssImport(value="./styles/confirm-dialog.css")
public class ConfirmDialog
extends com.vaadin.flow.component.dialog.Dialog
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfirmDialog.ButtonConfig |
static interface |
ConfirmDialog.ConfirmDialogRunnable |
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
ConfirmDialog(String header,
String q) |
ConfirmDialog(String header,
String q,
com.vaadin.flow.component.icon.Icon i) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clickedButton(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event,
ConfirmDialog.ButtonConfig config,
com.vaadin.flow.component.button.Button b) |
void |
disableAllButtons() |
void |
enableDisableAllButtons(boolean enable) |
com.vaadin.flow.component.orderedlayout.HorizontalLayout |
getButtonLayout() |
com.vaadin.flow.component.orderedlayout.HorizontalLayout |
getCaptionLayout() |
com.vaadin.flow.component.orderedlayout.VerticalLayout |
getMainLayout() |
protected void |
onAttach(com.vaadin.flow.component.AttachEvent attachEvent) |
ConfirmDialog.ButtonConfig |
withButton(String text,
com.vaadin.flow.component.icon.Icon icon,
Runnable r) |
ConfirmDialog |
withClassNames(String... c) |
ConfirmDialog |
withModal(boolean b) |
ConfirmDialog.ButtonConfig |
withNoButton() |
ConfirmDialog.ButtonConfig |
withYesButton() |
add, addAttachListener, addComponentAtIndex, addDetachListener, addDialogCloseActionListener, addOpenedChangeListener, addResizeListener, close, getChildren, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, open, remove, removeAll, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setOpened, setResizable, setWidthgetAriaLabelString, isOpenedBoolean, setAriaLabeladdListener, fireEvent, from, get, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisiblepublic ConfirmDialog withModal(boolean b)
public ConfirmDialog.ButtonConfig withButton(String text, com.vaadin.flow.component.icon.Icon icon, Runnable r)
public ConfirmDialog.ButtonConfig withYesButton()
public ConfirmDialog.ButtonConfig withNoButton()
public ConfirmDialog withClassNames(String... c)
public void disableAllButtons()
public void enableDisableAllButtons(boolean enable)
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
onAttach in class com.vaadin.flow.component.Componentprotected void clickedButton(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event,
ConfirmDialog.ButtonConfig config,
com.vaadin.flow.component.button.Button b)
public com.vaadin.flow.component.orderedlayout.VerticalLayout getMainLayout()
public com.vaadin.flow.component.orderedlayout.HorizontalLayout getCaptionLayout()
public com.vaadin.flow.component.orderedlayout.HorizontalLayout getButtonLayout()
Copyright © 2021. All rights reserved.