info.magnolia.ui.vaadin.actionbar
Class Actionbar

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.ui.AbstractComponent
          extended by info.magnolia.ui.vaadin.actionbar.Actionbar
All Implemented Interfaces:
com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Sizeable, com.vaadin.shared.Connector, com.vaadin.ui.Component, Serializable

public class Actionbar
extends com.vaadin.ui.AbstractComponent

The Actionbar widget, consisting of sections and groups of actions.

See Also:
Serialized Form

Nested Class Summary
static class Actionbar.ActionTriggerEvent
          The event fired when triggering actions from the action bar.
static interface Actionbar.ActionTriggerListener
          The listener interface for triggering actions from the action bar.
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
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
 
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit
 
Field Summary
 
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
Actionbar()
           
 
Method Summary
 void addAction(ActionbarItem action, String sectionName)
           
 void addActionTriggerListener(Actionbar.ActionTriggerListener listener)
           
 void addSection(String sectionName, String caption)
           
 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 removeActionTriggerListener(Actionbar.ActionTriggerListener listener)
           
 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 setOpen(boolean isOpen)
           
 void setSectionPreview(com.vaadin.server.Resource previewResource, String sectionName)
           
 void setSectionVisible(String sectionName, boolean isVisible)
           
 
Methods inherited from class com.vaadin.ui.AbstractComponent
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
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.ui.Component
getUI
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Constructor Detail

Actionbar

public Actionbar()
Method Detail

setOpen

public void setOpen(boolean isOpen)

getState

protected ActionbarState getState()
Overrides:
getState in class com.vaadin.ui.AbstractComponent

getState

protected ActionbarState getState(boolean markAsDirty)
Overrides:
getState in class com.vaadin.ui.AbstractComponent

addAction

public void addAction(ActionbarItem action,
                      String sectionName)

removeAction

public void removeAction(String actionName)

addSection

public void addSection(String sectionName,
                       String caption)

removeSection

public void removeSection(String sectionName)

setSectionPreview

public void setSectionPreview(com.vaadin.server.Resource previewResource,
                              String sectionName)

getSections

public Map<String,ActionbarSection> getSections()

setSectionVisible

public void setSectionVisible(String sectionName,
                              boolean isVisible)

isSectionVisible

public boolean isSectionVisible(String sectionName)

setGroupEnabled

public void setGroupEnabled(String groupName,
                            boolean isEnabled)

setGroupEnabled

public void setGroupEnabled(String groupName,
                            String sectionName,
                            boolean isEnabled)

setActionEnabled

public void setActionEnabled(String actionName,
                             boolean isEnabled)

setActionEnabled

public void setActionEnabled(String sectionName,
                             String actionName,
                             boolean isEnabled)

registerActionIconResource

public void registerActionIconResource(String actionName,
                                       com.vaadin.server.ThemeResource iconResource)

addActionTriggerListener

public void addActionTriggerListener(Actionbar.ActionTriggerListener listener)

removeActionTriggerListener

public void removeActionTriggerListener(Actionbar.ActionTriggerListener listener)


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.