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, View, ActionbarView, Serializable

public class Actionbar
extends com.vaadin.ui.AbstractComponent
implements ActionbarView

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

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface info.magnolia.ui.vaadin.actionbar.ActionbarView
ActionbarView.Listener
 
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 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)
           
 
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)
Specified by:
setOpen in interface ActionbarView

asVaadinComponent

public Actionbar asVaadinComponent()
Description copied from interface: View
Returns the Vaadin component managed by this view.

Specified by:
asVaadinComponent in interface View

setListener

public void setListener(ActionbarView.Listener listener)
Specified by:
setListener in interface ActionbarView

setOpened

public void setOpened(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)
Specified by:
addAction in interface ActionbarView

removeAction

public void removeAction(String actionName)
Specified by:
removeAction in interface ActionbarView

addSection

public void addSection(String sectionName,
                       String caption)
Specified by:
addSection in interface ActionbarView

removeSection

public void removeSection(String sectionName)
Specified by:
removeSection in interface ActionbarView

setSectionPreview

public void setSectionPreview(com.vaadin.server.Resource previewResource,
                              String sectionName)
Specified by:
setSectionPreview in interface ActionbarView

getSections

public Map<String,ActionbarSection> getSections()

setSectionVisible

public void setSectionVisible(String sectionName,
                              boolean isVisible)
Specified by:
setSectionVisible in interface ActionbarView

isSectionVisible

public boolean isSectionVisible(String sectionName)
Specified by:
isSectionVisible in interface ActionbarView

setGroupEnabled

public void setGroupEnabled(String groupName,
                            boolean isEnabled)
Specified by:
setGroupEnabled in interface ActionbarView

setGroupEnabled

public void setGroupEnabled(String groupName,
                            String sectionName,
                            boolean isEnabled)
Specified by:
setGroupEnabled in interface ActionbarView

setActionEnabled

public void setActionEnabled(String actionName,
                             boolean isEnabled)
Specified by:
setActionEnabled in interface ActionbarView

setActionEnabled

public void setActionEnabled(String sectionName,
                             String actionName,
                             boolean isEnabled)
Specified by:
setActionEnabled in interface ActionbarView

registerActionIconResource

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


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