public class ActionbarWidgetViewImpl extends com.google.gwt.user.client.ui.ComplexPanel implements ActionbarWidgetView, ActionTriggerEvent.Handler
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
ActionbarWidgetView.Presenter
Modifier and Type | Field and Description |
---|---|
static String |
CLASSNAME |
static String |
CLASSNAME_TOGGLE |
Constructor and Description |
---|
ActionbarWidgetViewImpl(com.google.web.bindery.event.shared.EventBus eventBus,
ActionbarWidgetView.Presenter presenter) |
Modifier and Type | Method and Description |
---|---|
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) |
void |
updateLayout() |
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final String CLASSNAME
public static final String CLASSNAME_TOGGLE
public ActionbarWidgetViewImpl(com.google.web.bindery.event.shared.EventBus eventBus, ActionbarWidgetView.Presenter presenter)
public void refreshActionsPositionsTablet()
ActionbarWidgetView
refreshActionsPositionsTablet
in interface ActionbarWidgetView
public Map<String,ActionbarSectionWidget> getSections()
ActionbarWidgetView
getSections
in interface ActionbarWidgetView
public void setPresenter(ActionbarWidgetView.Presenter presenter)
ActionbarWidgetView
setPresenter
in interface ActionbarWidgetView
presenter
- the new presenterpublic void addSection(ActionbarSection sectionParams)
public void addAction(ActionbarItem actionParams, String sectionName)
public void onActionTriggered(ActionTriggerEvent event)
onActionTriggered
in interface ActionTriggerEvent.Handler
public void setSections(Collection<ActionbarSection> newSections)
setSections
in interface ActionbarWidgetView
public void setVisibleSections(Collection<ActionbarSection> visibleSections)
setVisibleSections
in interface ActionbarWidgetView
public void setDisabledActions(Collection<ActionbarItem> disabledActions)
setDisabledActions
in interface ActionbarWidgetView
public boolean isOpen()
isOpen
in interface ActionbarWidgetView
public void setOpen(boolean isOpen)
setOpen
in interface ActionbarWidgetView
public void setSectionPreview(String sectionName, String previewUrl)
setSectionPreview
in interface ActionbarWidgetView
public void updateLayout()
updateLayout
in interface ActionbarWidgetView
Copyright © 2015 Magnolia International Ltd.. All rights reserved.