info.magnolia.ui.vaadin.dialog
Class ConfirmationDialog

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.ui.AbstractComponent
          extended by info.magnolia.ui.vaadin.dialog.BaseDialog
              extended by info.magnolia.ui.vaadin.dialog.LightDialog
                  extended by info.magnolia.ui.vaadin.dialog.ConfirmationDialog
All Implemented Interfaces:
com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Sizeable, com.vaadin.shared.Connector, com.vaadin.ui.Component, com.vaadin.ui.HasComponents, Serializable, Iterable<com.vaadin.ui.Component>

public class ConfirmationDialog
extends LightDialog

ConfirmationDialog.

See Also:
Serialized Form

Nested Class Summary
static class ConfirmationDialog.ConfirmationEvent
          ConfirmationEvent.
 
Nested classes/interfaces inherited from class info.magnolia.ui.vaadin.dialog.BaseDialog
BaseDialog.DescriptionVisibilityEvent, BaseDialog.DialogCloseEvent
 
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
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
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
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
 
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit
 
Field Summary
static String CONFIRM_ACTION_NAME
           
 
Fields inherited from class info.magnolia.ui.vaadin.dialog.BaseDialog
CANCEL_ACTION_NAME, COMMIT_ACTION_NAME
 
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
ConfirmationDialog(com.vaadin.ui.Component contents, String confirmLabel, String cancelLabel, boolean cancelIsDefault)
           
ConfirmationDialog(String message, String confirmLabel, String cancelLabel, boolean cancelIsDefault)
           
 
Method Summary
 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)
           
 
Methods inherited from class info.magnolia.ui.vaadin.dialog.BaseDialog
addDescriptionVisibilityHandler, addDialogCloseHandler, adoptComponent, closeSelf, createDefaultFooter, createDefaultHeader, getContent, getState, iterator, removeDescriptionVisibilityHandler, removeDialogCloseHandler, setCaption, setDescriptionVisibility, setDialogDescription, setFooterToolbar, setHeaderToolbar, showCloseButton
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setSizeFull, setSizeUndefined, setWidth, setWidth
 

Field Detail

CONFIRM_ACTION_NAME

public static final String CONFIRM_ACTION_NAME
See Also:
Constant Field Values
Constructor Detail

ConfirmationDialog

public ConfirmationDialog(String message,
                          String confirmLabel,
                          String cancelLabel,
                          boolean cancelIsDefault)

ConfirmationDialog

public ConfirmationDialog(com.vaadin.ui.Component contents,
                          String confirmLabel,
                          String cancelLabel,
                          boolean cancelIsDefault)
Method Detail

init

public void init(String confirmLabel,
                 String cancelLabel,
                 boolean cancelIsDefault)

confirm

public void confirm()

cancel

public void cancel()

setMessage

public void setMessage(String message)

getMessage

public String getMessage()

setContent

public void setContent(com.vaadin.ui.Component content)
Overrides:
setContent in class BaseDialog

createDefaultContent

protected com.vaadin.ui.Component createDefaultContent()
Overrides:
createDefaultContent in class BaseDialog

addConfirmationHandler

public void addConfirmationHandler(ConfirmationDialog.ConfirmationEvent.Handler handler)

removeConfirmationHandler

public void removeConfirmationHandler(ConfirmationDialog.ConfirmationEvent.Handler handler)


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.