public class CmsBasicDialog extends com.vaadin.ui.VerticalLayout
Modifier and Type | Class and Description |
---|---|
static class |
CmsBasicDialog.DialogWidth
The available window widths.
|
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler
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
Constructor and Description |
---|
CmsBasicDialog()
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addButton(com.vaadin.ui.Component button)
Adds a button to the button bar.
|
void |
addButton(com.vaadin.ui.Component button,
boolean right)
Adds a button to the button bar.
|
protected com.vaadin.ui.Button |
createButtonCancel()
Creates an 'Cancel' button.
|
protected com.vaadin.ui.Button |
createButtonOK()
Creates an 'OK' button.
|
protected com.vaadin.ui.Panel |
createResourceListPanel(java.lang.String caption,
java.util.List<CmsResource> resources)
Creates a resource list panel.
|
void |
displayResourceInfo(java.util.List<CmsResource> resources)
Displays the resource infos panel.
|
java.util.List<CmsResource> |
getInfoResources()
Gets the resources for which the resource info boxes should be displayed.
|
void |
initActionHandler(com.vaadin.ui.Window window)
Initializes action handler.
|
static com.vaadin.ui.Window |
prepareWindow()
Initializes the dialog window.
|
static com.vaadin.ui.Window |
prepareWindow(CmsBasicDialog.DialogWidth width)
Initializes the dialog window.
|
void |
readDesign(org.jsoup.nodes.Element design,
com.vaadin.ui.declarative.DesignContext designContext) |
void |
setAbove(com.vaadin.ui.Component aboveContent)
Sets the content to be displayed above the main content.
|
void |
setActionHandler(com.vaadin.event.Action.Handler actionHandler)
Sets the shortcut action handler.
|
void |
setBelow(com.vaadin.ui.Component belowContent)
Sets the content to be displayed below the main content.
|
void |
setContent(com.vaadin.ui.Component content)
Sets the content.
|
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, getState, isSpacing, iterator, removeComponent, removeLayoutClickListener, removeListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesign
addComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidth
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefined
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
addComponents, addListener, addListener, getComponentIterator, moveComponentsFrom, removeAllComponents, removeListener, removeListener
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public CmsBasicDialog()
public void addButton(com.vaadin.ui.Component button)
button
- the button to addpublic void addButton(com.vaadin.ui.Component button, boolean right)
button
- the button to addright
- to align the button rightprotected com.vaadin.ui.Button createButtonCancel()
protected com.vaadin.ui.Button createButtonOK()
protected com.vaadin.ui.Panel createResourceListPanel(java.lang.String caption, java.util.List<CmsResource> resources)
caption
- the caption to useresources
- the resourcespublic void displayResourceInfo(java.util.List<CmsResource> resources)
resources
- the resourcespublic java.util.List<CmsResource> getInfoResources()
public void initActionHandler(com.vaadin.ui.Window window)
window
- the parent windowpublic static com.vaadin.ui.Window prepareWindow()
public static com.vaadin.ui.Window prepareWindow(CmsBasicDialog.DialogWidth width)
width
- the dialog widthpublic void readDesign(org.jsoup.nodes.Element design, com.vaadin.ui.declarative.DesignContext designContext)
readDesign
in interface com.vaadin.ui.Component
readDesign
in class com.vaadin.ui.AbstractOrderedLayout
AbstractOrderedLayout.readDesign(org.jsoup.nodes.Element, com.vaadin.ui.declarative.DesignContext)
public void setAbove(com.vaadin.ui.Component aboveContent)
aboveContent
- the above contentpublic void setActionHandler(com.vaadin.event.Action.Handler actionHandler)
Set this before opening the window, so it will be initialized properly.
actionHandler
- the action handlerpublic void setBelow(com.vaadin.ui.Component belowContent)
belowContent
- the below contentpublic void setContent(com.vaadin.ui.Component content)
content
- the content widget