public class CmsToolBar extends com.vaadin.ui.CssLayout
Modifier and Type | Class and Description |
---|---|
protected static class |
CmsToolBar.ToolbarContext
Toolbar dialog context.
|
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 |
---|
CmsToolBar()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addButtonLeft(com.vaadin.ui.Component button)
Adds a button to left toolbar side.
|
void |
addButtonRight(com.vaadin.ui.Component button)
Adds a button to right toolbar side.
|
void |
clearButtonsLeft()
Clears the left toolbar buttons.
|
void |
clearButtonsRight()
Clears the right toolbar buttons.
|
void |
closePopupViews()
Closes all visible popup views.
|
static com.vaadin.ui.Button |
createButton(com.vaadin.server.Resource icon,
java.lang.String title)
Creates a properly styled toolbar button.
|
static com.vaadin.ui.Component |
createDropDown(com.vaadin.server.ExternalResource icon,
com.vaadin.ui.Component content,
java.lang.String title)
Creates a drop down menu.
|
static com.vaadin.ui.Component |
createDropDown(com.vaadin.server.FontIcon icon,
com.vaadin.ui.Component content,
java.lang.String title)
Creates a drop down menu.
|
static com.vaadin.ui.Component |
createDropDown(java.lang.String buttonHtml,
com.vaadin.ui.Component content,
java.lang.String title)
Creates a drop down menu.
|
void |
setAppTitle(java.lang.String appTitle)
Sets the app title.
|
protected void |
setDialogContext(I_CmsDialogContext context)
Sets the dialog context.
|
void |
updateAppIndicator()
Updates the app indicator site and project info.
|
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, addListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, removeListener, replaceComponent, writeDesign
addComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidth
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, 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, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public CmsToolBar()
public void addButtonLeft(com.vaadin.ui.Component button)
button
- the buttonpublic void addButtonRight(com.vaadin.ui.Component button)
button
- the buttonpublic void clearButtonsLeft()
public void clearButtonsRight()
public void closePopupViews()
public static com.vaadin.ui.Button createButton(com.vaadin.server.Resource icon, java.lang.String title)
icon
- the button icontitle
- the button title, will be used for the tooltippublic static com.vaadin.ui.Component createDropDown(com.vaadin.server.ExternalResource icon, com.vaadin.ui.Component content, java.lang.String title)
icon
- the button iconcontent
- the drop down contenttitle
- the button titlepublic static com.vaadin.ui.Component createDropDown(com.vaadin.server.FontIcon icon, com.vaadin.ui.Component content, java.lang.String title)
icon
- the button iconcontent
- the drop down contenttitle
- the drop down titlepublic static com.vaadin.ui.Component createDropDown(java.lang.String buttonHtml, com.vaadin.ui.Component content, java.lang.String title)
buttonHtml
- the button HTMLcontent
- the drop down contenttitle
- the button titlepublic void setAppTitle(java.lang.String appTitle)
appTitle
- the app titleprotected void setDialogContext(I_CmsDialogContext context)
context
- the dialog contextpublic void updateAppIndicator()