info.magnolia.ui.vaadin.dialog
Class BaseDialog

java.lang.Object
  extended by com.vaadin.ui.AbstractComponent
      extended by info.magnolia.ui.vaadin.dialog.BaseDialog
All Implemented Interfaces:
com.vaadin.event.MethodEventSource, com.vaadin.terminal.Paintable, com.vaadin.terminal.Sizeable, com.vaadin.terminal.VariableOwner, com.vaadin.ui.Component, info.magnolia.ui.framework.view.View, DialogView, Serializable, EventListener, org.vaadin.rpc.ServerSideHandler
Direct Known Subclasses:
ConfirmationDialog, FormDialog

public class BaseDialog
extends com.vaadin.ui.AbstractComponent
implements org.vaadin.rpc.ServerSideHandler, DialogView

Basic implementation of dialogs. Is capable of displaying any content inside it's content component. Provides Action registration and callbacks to the view.

See Also:
Serialized Form

Nested Class Summary
static class BaseDialog.DialogCloseEvent
          DialogCloseEvent.
 
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler
 
Nested classes/interfaces inherited from interface info.magnolia.ui.vaadin.dialog.DialogView
DialogView.DialogActionListener
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.ErrorListener, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.Paintable
com.vaadin.terminal.Paintable.RepaintRequestEvent, com.vaadin.terminal.Paintable.RepaintRequestListener
 
Field Summary
 
Fields inherited from interface com.vaadin.terminal.Sizeable
SIZE_UNDEFINED, UNIT_SYMBOLS, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
BaseDialog()
           
 
Method Summary
 void addAction(String actionName, String actionLabel)
           
 void addAction(String actionName, String actionLabel, DialogView.DialogActionListener callback)
           
 void addActionCallback(String actionName, DialogView.DialogActionListener callback)
           
 void addDialogCloseHandler(BaseDialog.DialogCloseEvent.Handler handler)
           
 BaseDialog asVaadinComponent()
           
 void attach()
           
 void callFromClient(String method, Object[] params)
           
 void changeVariables(Object source, Map<String,Object> variables)
           
 void clearCallbacks()
           
 void closeSelf()
           
protected  com.vaadin.ui.Component createDefaultContent()
           
 void detach()
           
 com.vaadin.ui.Component getContent()
           
 Object[] initRequestFromClient()
           
 void paintContent(com.vaadin.terminal.PaintTarget target)
           
 void removeDialogCloseHandler(BaseDialog.DialogCloseEvent.Handler handler)
           
 void setActionLabel(String actionName, String newLabel)
           
 void setCaption(String caption)
           
 void setContent(com.vaadin.ui.Component content)
           
 void setDialogDescription(String description)
           
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, focus, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setComponentError, setData, setDebugId, setDescription, setEnabled, setErrorHandler, setHeight, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidth, setWidthUnits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.vaadin.rpc.ServerSideHandler
requestRepaint
 

Constructor Detail

BaseDialog

public BaseDialog()
Method Detail

setContent

public void setContent(com.vaadin.ui.Component content)

paintContent

public void paintContent(com.vaadin.terminal.PaintTarget target)
                  throws com.vaadin.terminal.PaintException
Overrides:
paintContent in class com.vaadin.ui.AbstractComponent
Throws:
com.vaadin.terminal.PaintException

changeVariables

public void changeVariables(Object source,
                            Map<String,Object> variables)
Specified by:
changeVariables in interface com.vaadin.terminal.VariableOwner
Overrides:
changeVariables in class com.vaadin.ui.AbstractComponent

getContent

public com.vaadin.ui.Component getContent()

attach

public void attach()
Specified by:
attach in interface com.vaadin.ui.Component
Overrides:
attach in class com.vaadin.ui.AbstractComponent

detach

public void detach()
Specified by:
detach in interface com.vaadin.ui.Component
Overrides:
detach in class com.vaadin.ui.AbstractComponent

closeSelf

public void closeSelf()

addAction

public void addAction(String actionName,
                      String actionLabel)

setActionLabel

public void setActionLabel(String actionName,
                           String newLabel)

setDialogDescription

public void setDialogDescription(String description)
Specified by:
setDialogDescription in interface DialogView

setCaption

public void setCaption(String caption)
Specified by:
setCaption in interface com.vaadin.ui.Component
Specified by:
setCaption in interface DialogView
Overrides:
setCaption in class com.vaadin.ui.AbstractComponent

createDefaultContent

protected com.vaadin.ui.Component createDefaultContent()

initRequestFromClient

public Object[] initRequestFromClient()
Specified by:
initRequestFromClient in interface org.vaadin.rpc.ServerSideHandler

callFromClient

public void callFromClient(String method,
                           Object[] params)
Specified by:
callFromClient in interface org.vaadin.rpc.ServerSideHandler

asVaadinComponent

public BaseDialog asVaadinComponent()
Specified by:
asVaadinComponent in interface info.magnolia.ui.framework.view.View
Specified by:
asVaadinComponent in interface DialogView

addAction

public void addAction(String actionName,
                      String actionLabel,
                      DialogView.DialogActionListener callback)

addActionCallback

public void addActionCallback(String actionName,
                              DialogView.DialogActionListener callback)

addDialogCloseHandler

public void addDialogCloseHandler(BaseDialog.DialogCloseEvent.Handler handler)

removeDialogCloseHandler

public void removeDialogCloseHandler(BaseDialog.DialogCloseEvent.Handler handler)

clearCallbacks

public void clearCallbacks()


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