Class AbstractWorkbenchPartPresenter
- java.lang.Object
-
- org.uberfire.client.workbench.part.AbstractWorkbenchPartPresenter
-
- All Implemented Interfaces:
WorkbenchPartPresenter
- Direct Known Subclasses:
UnanchoredWorkbenchPartPresenter,WorkbenchPartPresenterDefault
public abstract class AbstractWorkbenchPartPresenter extends Object implements WorkbenchPartPresenter
A Workbench panel part.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.uberfire.client.workbench.part.WorkbenchPartPresenter
WorkbenchPartPresenter.View
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkbenchPartPresenter(WorkbenchPartPresenter.View view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContextId()org.uberfire.workbench.model.PartDefinitiongetDefinition()voidgetMenus(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)Returns the menus associated with this part.WorkbenchPartPresenter.ViewgetPartView()StringgetTitle()Returns the text that a panel may choose to display beside this part's title.com.google.gwt.user.client.ui.IsWidgetgetTitleDecoration()Returns the widget that a panel may choose to display beside this part's title.voidsetContextId(String contextId)voidsetDefinition(org.uberfire.workbench.model.PartDefinition definition)voidsetMenus(org.uberfire.workbench.model.menu.Menus menus)Sets the menus associated with this part.voidsetTitle(String title)Sets the text that a panel may choose to display beside this part's title.voidsetTitleDecoration(com.google.gwt.user.client.ui.IsWidget titleDecoration)Sets the widget that a panel may choose to display beside this part's title.voidsetWrappedWidget(com.google.gwt.user.client.ui.IsWidget widget)
-
-
-
Constructor Detail
-
AbstractWorkbenchPartPresenter
@Inject public AbstractWorkbenchPartPresenter(WorkbenchPartPresenter.View view)
-
-
Method Detail
-
getDefinition
public org.uberfire.workbench.model.PartDefinition getDefinition()
- Specified by:
getDefinitionin interfaceWorkbenchPartPresenter
-
setDefinition
public void setDefinition(org.uberfire.workbench.model.PartDefinition definition)
- Specified by:
setDefinitionin interfaceWorkbenchPartPresenter
-
getPartView
public WorkbenchPartPresenter.View getPartView()
- Specified by:
getPartViewin interfaceWorkbenchPartPresenter
-
setWrappedWidget
public void setWrappedWidget(com.google.gwt.user.client.ui.IsWidget widget)
- Specified by:
setWrappedWidgetin interfaceWorkbenchPartPresenter
-
getTitle
public String getTitle()
Description copied from interface:WorkbenchPartPresenterReturns the text that a panel may choose to display beside this part's title. For example,MultiTabWorkbenchPanelPresenteruses this text for the tab's label.- Specified by:
getTitlein interfaceWorkbenchPartPresenter- Returns:
- The title of this part; never null.
-
setTitle
public void setTitle(String title)
Description copied from interface:WorkbenchPartPresenterSets the text that a panel may choose to display beside this part's title. For example,MultiTabWorkbenchPanelPresenteruses this text for the tab's label.- Specified by:
setTitlein interfaceWorkbenchPartPresenter- Parameters:
title- The title of this part. Null is not permitted.
-
getMenus
public void getMenus(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)
Description copied from interface:WorkbenchPartPresenterReturns the menus associated with this part.- Specified by:
getMenusin interfaceWorkbenchPartPresenter
-
setMenus
public void setMenus(org.uberfire.workbench.model.menu.Menus menus)
Description copied from interface:WorkbenchPartPresenterSets the menus associated with this part.- Specified by:
setMenusin interfaceWorkbenchPartPresenter- Parameters:
menus- the menus associated with this part. Can be null, which means this part does not have menus.
-
getTitleDecoration
public com.google.gwt.user.client.ui.IsWidget getTitleDecoration()
Description copied from interface:WorkbenchPartPresenterReturns the widget that a panel may choose to display beside this part's title.- Specified by:
getTitleDecorationin interfaceWorkbenchPartPresenter- Returns:
- The title decoration widget to use. Null means no title decoration.
-
setTitleDecoration
public void setTitleDecoration(com.google.gwt.user.client.ui.IsWidget titleDecoration)
Description copied from interface:WorkbenchPartPresenterSets the widget that a panel may choose to display beside this part's title.NOTE: presently, none of the built-in panel types display a part's title decoration.
- Specified by:
setTitleDecorationin interfaceWorkbenchPartPresenter- Parameters:
titleDecoration- The title decoration widget to use. Null is permitted, and means no title decoration.
-
getContextId
public String getContextId()
- Specified by:
getContextIdin interfaceWorkbenchPartPresenter
-
setContextId
public void setContextId(String contextId)
- Specified by:
setContextIdin interfaceWorkbenchPartPresenter
-
-