public class ConfirmationDialog extends LightDialog
Modifier and Type | Class and Description |
---|---|
static class |
ConfirmationDialog.ConfirmationEvent
ConfirmationEvent.
|
BaseDialog.DescriptionVisibilityEvent, BaseDialog.DialogCloseEvent, BaseDialog.WideEvent
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Field and Description |
---|---|
static String |
CONFIRM_ACTION_NAME |
CANCEL_ACTION_NAME, COMMIT_ACTION_NAME
Constructor and Description |
---|
ConfirmationDialog(com.vaadin.ui.Component contents,
String confirmLabel,
String cancelLabel,
boolean cancelIsDefault) |
ConfirmationDialog(String message,
String confirmLabel,
String cancelLabel,
boolean cancelIsDefault) |
Modifier and Type | Method and Description |
---|---|
void |
addConfirmationHandler(ConfirmationDialog.ConfirmationEvent.Handler handler) |
void |
cancel() |
void |
confirm() |
protected com.vaadin.ui.Component |
createDefaultContent() |
String |
getMessage() |
void |
init(String confirmLabel,
String cancelLabel,
boolean cancelIsDefault) |
void |
removeConfirmationHandler(ConfirmationDialog.ConfirmationEvent.Handler handler) |
void |
setContent(com.vaadin.ui.Component content) |
void |
setMessage(String message) |
addDescriptionVisibilityHandler, addDialogCloseHandler, addWideHandler, adoptComponent, closeSelf, createDefaultFooter, createDefaultHeader, getContent, getState, iterator, removeDescriptionVisibilityHandler, removeDialogCloseHandler, removeWideHandler, setCaption, setDescriptionVisibility, setDialogDescription, setFooterToolbar, setHeaderToolbar, setModalityLevel, setWide, setWideOnClient, showCloseButton
addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isVisible, readDesign, removeListener, removeShortcutListener, removeStyleName, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesign
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public static final String CONFIRM_ACTION_NAME
public ConfirmationDialog(String message, String confirmLabel, String cancelLabel, boolean cancelIsDefault)
public void confirm()
public void cancel()
public void setMessage(String message)
public String getMessage()
public void setContent(com.vaadin.ui.Component content)
setContent
in class BaseDialog
protected com.vaadin.ui.Component createDefaultContent()
createDefaultContent
in class BaseDialog
public void addConfirmationHandler(ConfirmationDialog.ConfirmationEvent.Handler handler)
public void removeConfirmationHandler(ConfirmationDialog.ConfirmationEvent.Handler handler)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.