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.
|
com.vaadin.ui.Button |
createButtonCancel()
Creates an 'Cancel' button.
|
com.vaadin.ui.Button |
createButtonClose()
Creates an 'Cancel' button.
|
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.
|
protected com.vaadin.ui.Panel |
createResourceListPanelDirectly(java.lang.String caption,
java.util.List<CmsResourceInfo> resourceInfo)
Creates a resource list panel.
|
void |
displayResourceInfo(java.util.List<CmsResource> resources)
Displays the resource infos panel.
|
void |
displayResourceInfo(java.util.List<CmsResource> resources,
java.lang.String messageKey)
Display the resource indos panel with panel message.
|
void |
displayResourceInfoDirectly(java.util.List<CmsResourceInfo> resourceInfos)
Displays the resource info panel.
|
protected void |
enableMaxHeight()
Adds the max height extension to the dialog 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.
|
void |
setContentMinHeight(int height)
Sets the height of the content to a given min Height or 100%.
|
void |
setContentVisibility(boolean visible)
Sets the visibility of the content panel.
|
void |
setWindowMinFullHeight(int minHeight)
Sets the window which contains this dialog to full height with a given minimal height in pixel.
|
addComponentsAndExpand, getState, getState
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, removeComponent, removeLayoutClickListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesign
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, 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, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponents
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, 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 static com.vaadin.ui.Window prepareWindow()
public static com.vaadin.ui.Window prepareWindow(CmsBasicDialog.DialogWidth width)
width
- the dialog widthpublic 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 rightpublic com.vaadin.ui.Button createButtonCancel()
public com.vaadin.ui.Button createButtonClose()
public com.vaadin.ui.Button createButtonOK()
public void displayResourceInfo(java.util.List<CmsResource> resources)
resources
- the resourcespublic void displayResourceInfo(java.util.List<CmsResource> resources, java.lang.String messageKey)
resources
- to show info formessageKey
- of the panelpublic void displayResourceInfoDirectly(java.util.List<CmsResourceInfo> resourceInfos)
resourceInfos
- to displaypublic java.util.List<CmsResource> getInfoResources()
public void initActionHandler(com.vaadin.ui.Window window)
window
- the parent windowpublic 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 widgetpublic void setContentMinHeight(int height)
height
- minimal height.public void setContentVisibility(boolean visible)
visible
- visibility of the content.public void setWindowMinFullHeight(int minHeight)
minHeight
- minimal height in pixelprotected com.vaadin.ui.Panel createResourceListPanel(java.lang.String caption, java.util.List<CmsResource> resources)
caption
- the caption to useresources
- the resourcesprotected com.vaadin.ui.Panel createResourceListPanelDirectly(java.lang.String caption, java.util.List<CmsResourceInfo> resourceInfo)
caption
- the caption to useresourceInfo
- the resource-infosprotected void enableMaxHeight()