info.magnolia.ui.vaadin.gwt.client.actionbar.widget
Interface ActionbarWidgetView

All Superinterfaces:
com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>
All Known Implementing Classes:
ActionbarWidgetViewImpl

public interface ActionbarWidgetView
extends com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IsWidget

View interface of client-side action bar.


Nested Class Summary
static interface ActionbarWidgetView.Presenter
          Presenter for the Actionbar view.
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Method Summary
 Map<String,ActionbarSectionWidget> getSections()
          Gets the section widgets inside this action bar view.
 boolean isOpen()
           
 void refreshActionsPositionsTablet()
          Update the classes on the actions so that they are positioned correctly.
 void setDisabledActions(Collection<ActionbarItem> enabledActions)
           
 void setOpen(boolean isOpen)
           
 void setPresenter(ActionbarWidgetView.Presenter presenter)
          Sets the presenter.
 void setSectionPreview(String sectionName, String previewUrl)
           
 void setSections(Collection<ActionbarSection> sections)
           
 void setVisibleSections(Collection<ActionbarSection> visibleSections)
           
 
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
 

Method Detail

getSections

Map<String,ActionbarSectionWidget> getSections()
Gets the section widgets inside this action bar view.

Returns:
the sections

setPresenter

void setPresenter(ActionbarWidgetView.Presenter presenter)
Sets the presenter.

Parameters:
presenter - the new presenter

setSections

void setSections(Collection<ActionbarSection> sections)

setVisibleSections

void setVisibleSections(Collection<ActionbarSection> visibleSections)

setDisabledActions

void setDisabledActions(Collection<ActionbarItem> enabledActions)

setSectionPreview

void setSectionPreview(String sectionName,
                       String previewUrl)

refreshActionsPositionsTablet

void refreshActionsPositionsTablet()
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.


isOpen

boolean isOpen()

setOpen

void setOpen(boolean isOpen)


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