Class WorkbenchToolBarPresenter
- java.lang.Object
-
- org.uberfire.client.workbench.widgets.toolbar.WorkbenchToolBarPresenter
-
@ApplicationScoped public class WorkbenchToolBarPresenter extends Object
Presenter for WorkbenchToolBar that mediates changes to the Workbench ToolBar in response to changes to the selected WorkbenchPart. This implementation is specific to GWT. An alternative implementation should be considered for use within Eclipse.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWorkbenchToolBarPresenter.ViewView contract for an UberFire toolbar view.
-
Constructor Summary
Constructors Constructor Description WorkbenchToolBarPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItemsFor(org.uberfire.mvp.PlaceRequest place)Adds all the ToolBar items associated with the given place to this toolbar.voidaddWorkbenchItem(org.uberfire.workbench.model.toolbar.ToolBar toolBar)voidaddWorkbenchPerspective(org.uberfire.workbench.model.toolbar.ToolBar toolBar)voidclearWorkbenchItems()voidclearWorkbenchPerspectiveItems()intgetHeight()com.google.gwt.user.client.ui.IsWidgetgetView()voidhide()voidshow()
-
-
-
Method Detail
-
getView
public com.google.gwt.user.client.ui.IsWidget getView()
-
getHeight
public int getHeight()
-
hide
public void hide()
-
show
public void show()
-
addItemsFor
public void addItemsFor(org.uberfire.mvp.PlaceRequest place)
Adds all the ToolBar items associated with the given place to this toolbar. The exact list of items added is remembered, and can be removed later by a call toremoveItemsFor(PlaceRequest).The toolbar items are filtered for the current user subject to their security requirements.
This method becomes a no-op when any of the following is true:
- The place doesn't have an associated
Activity - The place's Activity is not a
WorkbenchActivity - The place's WorkbenchActivity doesn't have a
ToolBar
- The place doesn't have an associated
-
addWorkbenchItem
public void addWorkbenchItem(org.uberfire.workbench.model.toolbar.ToolBar toolBar)
-
addWorkbenchPerspective
public void addWorkbenchPerspective(org.uberfire.workbench.model.toolbar.ToolBar toolBar)
-
clearWorkbenchItems
public void clearWorkbenchItems()
-
clearWorkbenchPerspectiveItems
public void clearWorkbenchPerspectiveItems()
-
-