info.magnolia.ui.vaadin.gwt.client.actionbar.widget
Class ActionbarWidgetViewImpl

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by info.magnolia.ui.vaadin.gwt.client.actionbar.widget.ActionbarWidgetViewImpl
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, ActionTriggerEvent.Handler, ActionbarWidgetView, Iterable<com.google.gwt.user.client.ui.Widget>

public class ActionbarWidgetViewImpl
extends com.google.gwt.user.client.ui.ComplexPanel
implements ActionbarWidgetView, ActionTriggerEvent.Handler

The Class VActionbarViewImpl, GWT implementation for the VActionbarView interface.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface info.magnolia.ui.vaadin.gwt.client.actionbar.widget.ActionbarWidgetView
ActionbarWidgetView.Presenter
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
 
Field Summary
static String CLASSNAME
           
static String CLASSNAME_TOGGLE
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ActionbarWidgetViewImpl(com.google.web.bindery.event.shared.EventBus eventBus, ActionbarWidgetView.Presenter presenter)
           
 
Method Summary
 void addAction(ActionbarItem actionParams, String sectionName)
           
 void addSection(ActionbarSection sectionParams)
           
 Map<String,ActionbarSectionWidget> getSections()
          Gets the section widgets inside this action bar view.
 boolean isOpen()
           
 void onActionTriggered(ActionTriggerEvent event)
           
 void refreshActionsPositionsTablet()
          Update the classes on the actions so that they are positioned correctly.
 void setDisabledActions(Collection<ActionbarItem> disabledActions)
           
 void setOpen(boolean isOpen)
           
 void setPresenter(ActionbarWidgetView.Presenter presenter)
          Sets the presenter.
 void setSectionPreview(String sectionName, String previewUrl)
           
 void setSections(Collection<ActionbarSection> newSections)
           
 void setVisibleSections(Collection<ActionbarSection> visibleSections)
           
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets
add, clear, iterator, remove
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 

Field Detail

CLASSNAME

public static final String CLASSNAME
See Also:
Constant Field Values

CLASSNAME_TOGGLE

public static final String CLASSNAME_TOGGLE
See Also:
Constant Field Values
Constructor Detail

ActionbarWidgetViewImpl

public ActionbarWidgetViewImpl(com.google.web.bindery.event.shared.EventBus eventBus,
                               ActionbarWidgetView.Presenter presenter)
Method Detail

refreshActionsPositionsTablet

public void refreshActionsPositionsTablet()
Description copied from interface: ActionbarWidgetView
Update the classes on the actions so that they are positioned correctly. Necessary to handle when sections are dynamically changed like in the page editor.

Specified by:
refreshActionsPositionsTablet in interface ActionbarWidgetView

getSections

public Map<String,ActionbarSectionWidget> getSections()
Description copied from interface: ActionbarWidgetView
Gets the section widgets inside this action bar view.

Specified by:
getSections in interface ActionbarWidgetView
Returns:
the sections

setPresenter

public void setPresenter(ActionbarWidgetView.Presenter presenter)
Description copied from interface: ActionbarWidgetView
Sets the presenter.

Specified by:
setPresenter in interface ActionbarWidgetView
Parameters:
presenter - the new presenter

addSection

public void addSection(ActionbarSection sectionParams)

addAction

public void addAction(ActionbarItem actionParams,
                      String sectionName)

onActionTriggered

public void onActionTriggered(ActionTriggerEvent event)
Specified by:
onActionTriggered in interface ActionTriggerEvent.Handler

setSections

public void setSections(Collection<ActionbarSection> newSections)
Specified by:
setSections in interface ActionbarWidgetView

setVisibleSections

public void setVisibleSections(Collection<ActionbarSection> visibleSections)
Specified by:
setVisibleSections in interface ActionbarWidgetView

setDisabledActions

public void setDisabledActions(Collection<ActionbarItem> disabledActions)
Specified by:
setDisabledActions in interface ActionbarWidgetView

isOpen

public boolean isOpen()
Specified by:
isOpen in interface ActionbarWidgetView

setOpen

public void setOpen(boolean isOpen)
Specified by:
setOpen in interface ActionbarWidgetView

setSectionPreview

public void setSectionPreview(String sectionName,
                              String previewUrl)
Specified by:
setSectionPreview in interface ActionbarWidgetView


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