public class ToolBar
extends com.vaadin.ui.HorizontalLayout
ToolbarEntry
s.com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.MarginInfo, com.vaadin.ui.Layout.SpacingHandler
com.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener
Modifier and Type | Field and Description |
---|---|
protected List<com.vaadin.ui.Button> |
actionButtons |
protected List<com.vaadin.ui.Component> |
additionalComponents |
protected ToolbarEntry |
currentEntry |
protected String |
currentEntryKey |
protected Map<String,ToolbarEntry> |
entryMap |
Constructor and Description |
---|
ToolBar() |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalComponent(com.vaadin.ui.Component component) |
void |
addButton(com.vaadin.ui.Button button)
Add a button to the toolbar.
|
protected void |
addEntryComponent(ToolbarEntry entry) |
ToolbarPopupEntry |
addPopupEntry(String key,
String title)
Add a new entry, which displays a pop-up-list when clicked.
|
ToolbarEntry |
addToolbarEntry(String key,
String title,
ToolbarEntry.ToolbarCommand command)
Add a new entry to the tool bar.
|
long |
getCount(String key) |
String |
getCurrentEntryKey() |
ToolbarEntry |
getEntry(String key)
Gets the entry for the given key.
|
void |
removeAllAdditionalComponents() |
void |
removeAllButtons() |
void |
setActiveEntry(String key)
Set the entry active with the given key.
|
void |
setCount(String key,
Long count)
Update the count field on the entry with the given key.
|
addComponent, addComponent, addComponentAsFirst, addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getComponentIterator, getExpandRatio, isSpacing, isSpacingEnabled, paintContent, removeComponent, removeListener, replaceComponent, setComponentAlignment, setComponentAlignment, setComponentAlignment, setExpandRatio, setSpacing
changeVariables, fireClick, getMargin, setMargin, setMargin, setMargin
addListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth
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, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, addListener, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll
addListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible
protected Map<String,ToolbarEntry> entryMap
protected String currentEntryKey
protected ToolbarEntry currentEntry
protected List<com.vaadin.ui.Button> actionButtons
protected List<com.vaadin.ui.Component> additionalComponents
public ToolbarEntry addToolbarEntry(String key, String title, ToolbarEntry.ToolbarCommand command)
public ToolbarPopupEntry addPopupEntry(String key, String title)
ToolbarPopupEntry
instance.public void addButton(com.vaadin.ui.Button button)
public void removeAllButtons()
public void addAdditionalComponent(com.vaadin.ui.Component component)
public void removeAllAdditionalComponents()
public long getCount(String key)
public void setCount(String key, Long count)
public ToolbarEntry getEntry(String key)
public void setActiveEntry(String key)
protected void addEntryComponent(ToolbarEntry entry)
public String getCurrentEntryKey()
Copyright © 2016 Alfresco. All rights reserved.