public class Actionbar extends com.vaadin.ui.AbstractComponent implements ActionbarView
ActionbarView.Listener
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 |
---|
Actionbar() |
Modifier and Type | Method and Description |
---|---|
void |
addAction(ActionbarItem action,
String sectionName) |
void |
addSection(String sectionName,
String caption) |
Actionbar |
asVaadinComponent()
Returns the Vaadin component managed by this view.
|
Map<String,ActionbarSection> |
getSections() |
protected ActionbarState |
getState() |
protected ActionbarState |
getState(boolean markAsDirty) |
boolean |
isSectionVisible(String sectionName) |
void |
registerActionIconResource(String actionName,
com.vaadin.server.ThemeResource iconResource) |
void |
removeAction(String actionName) |
void |
removeSection(String sectionName) |
void |
setActionEnabled(String actionName,
boolean isEnabled) |
void |
setActionEnabled(String sectionName,
String actionName,
boolean isEnabled) |
void |
setGroupEnabled(String groupName,
boolean isEnabled) |
void |
setGroupEnabled(String groupName,
String sectionName,
boolean isEnabled) |
void |
setListener(ActionbarView.Listener listener) |
void |
setOpen(boolean isOpen) |
void |
setOpened(boolean isOpen) |
void |
setSectionPreview(com.vaadin.server.Resource previewResource,
String sectionName) |
void |
setSectionVisible(String sectionName,
boolean isVisible) |
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, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public void setOpen(boolean isOpen)
setOpen
in interface ActionbarView
public Actionbar asVaadinComponent()
View
asVaadinComponent
in interface View
public void setListener(ActionbarView.Listener listener)
setListener
in interface ActionbarView
public void setOpened(boolean isOpen)
protected ActionbarState getState()
getState
in class com.vaadin.ui.AbstractComponent
protected ActionbarState getState(boolean markAsDirty)
getState
in class com.vaadin.ui.AbstractComponent
public void addAction(ActionbarItem action, String sectionName)
addAction
in interface ActionbarView
public void removeAction(String actionName)
removeAction
in interface ActionbarView
public void addSection(String sectionName, String caption)
addSection
in interface ActionbarView
public void removeSection(String sectionName)
removeSection
in interface ActionbarView
public void setSectionPreview(com.vaadin.server.Resource previewResource, String sectionName)
setSectionPreview
in interface ActionbarView
public Map<String,ActionbarSection> getSections()
public void setSectionVisible(String sectionName, boolean isVisible)
setSectionVisible
in interface ActionbarView
public boolean isSectionVisible(String sectionName)
isSectionVisible
in interface ActionbarView
public void setGroupEnabled(String groupName, boolean isEnabled)
setGroupEnabled
in interface ActionbarView
public void setGroupEnabled(String groupName, String sectionName, boolean isEnabled)
setGroupEnabled
in interface ActionbarView
public void setActionEnabled(String actionName, boolean isEnabled)
setActionEnabled
in interface ActionbarView
public void setActionEnabled(String sectionName, String actionName, boolean isEnabled)
setActionEnabled
in interface ActionbarView
public void registerActionIconResource(String actionName, com.vaadin.server.ThemeResource iconResource)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.