public class CmsInfoButton extends com.vaadin.ui.Button
com.vaadin.ui.Button.ClickEvent, com.vaadin.ui.Button.ClickListener, com.vaadin.ui.Button.ClickShortcutcom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.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 |
|---|---|
protected java.lang.String |
m_windowCaption
Caption for information window.
|
| Constructor and Description |
|---|
CmsInfoButton()
public constructor.
|
CmsInfoButton(java.util.List<java.lang.String> htmlLines)
public constructor.
|
CmsInfoButton(java.util.Map<java.lang.String,java.lang.String> infos)
public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalElement(com.vaadin.ui.Component component)
Adds a vaadin element to window at last position.
|
void |
addAdditionalElement(com.vaadin.ui.Component component,
int pos)
Adds a vaadin element to window.
|
com.vaadin.v7.ui.VerticalLayout |
getInfoLayout()
Get the info layout.
|
protected com.vaadin.v7.ui.VerticalLayout |
getLayout(java.util.List<java.lang.String> htmlLines,
java.util.List<org.opencms.ui.components.CmsInfoButton.InfoElementBean> additionalElements)
The layout which is shown in window by triggering onclick event of button.
|
void |
replaceData(java.util.Map<java.lang.String,java.lang.String> data)
Replaces current Map with new map.
|
void |
setAdditionalButton(com.vaadin.ui.Button button) |
void |
setWindowCaption(java.lang.String caption)
Sets the caption of the information window.
|
addClickListener, click, fireClick, fireClick, getCustomAttributes, getIconAlternateText, getState, getState, isDisableOnClick, isHtmlContentAllowed, readDesign, removeClickListener, removeClickShortcut, setClickShortcut, setDisableOnClick, setHtmlContentAllowed, setIcon, setIconAlternateText, writeDesignaddBlurListener, addFocusListener, focus, getTabIndex, setTabIndexaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, 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, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefinedaddAttachListener, 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, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddShortcutListener, removeShortcutListeneraddListener, 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, setVisibleaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerprotected java.lang.String m_windowCaption
public CmsInfoButton()
public CmsInfoButton(java.util.List<java.lang.String> htmlLines)
htmlLines - lines to showpublic CmsInfoButton(java.util.Map<java.lang.String,java.lang.String> infos)
infos - map with information to displaypublic void addAdditionalElement(com.vaadin.ui.Component component)
component - to be addedpublic void addAdditionalElement(com.vaadin.ui.Component component, int pos)
component - to be addedpos - position in vertical layoutpublic com.vaadin.v7.ui.VerticalLayout getInfoLayout()
public void replaceData(java.util.Map<java.lang.String,java.lang.String> data)
data - to replace the old mappublic void setAdditionalButton(com.vaadin.ui.Button button)
public void setWindowCaption(java.lang.String caption)
caption - to be setprotected com.vaadin.v7.ui.VerticalLayout getLayout(java.util.List<java.lang.String> htmlLines, java.util.List<org.opencms.ui.components.CmsInfoButton.InfoElementBean> additionalElements)
htmlLines - to be shownadditionalElements - further vaadin elements