Interface WorkbenchPartPresenter
-
- All Known Implementing Classes:
AbstractWorkbenchPartPresenter,UnanchoredWorkbenchPartPresenter,WorkbenchPartPresenterDefault
public interface WorkbenchPartPresenter
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceWorkbenchPartPresenter.View
-
Method Summary
All Methods Instance Methods Abstract 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)
-
-
-
Method Detail
-
getDefinition
org.uberfire.workbench.model.PartDefinition getDefinition()
-
setDefinition
void setDefinition(org.uberfire.workbench.model.PartDefinition definition)
-
getPartView
WorkbenchPartPresenter.View getPartView()
-
setWrappedWidget
void setWrappedWidget(com.google.gwt.user.client.ui.IsWidget widget)
-
getTitle
String getTitle()
Returns the text that a panel may choose to display beside this part's title. For example,MultiTabWorkbenchPanelPresenteruses this text for the tab's label.- Returns:
- The title of this part; never null.
-
setTitle
void setTitle(String title)
Sets the text that a panel may choose to display beside this part's title. For example,MultiTabWorkbenchPanelPresenteruses this text for the tab's label.- Parameters:
title- The title of this part. Null is not permitted.
-
getMenus
void getMenus(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)
Returns the menus associated with this part.
-
setMenus
void setMenus(org.uberfire.workbench.model.menu.Menus menus)
Sets the menus associated with this part.- Parameters:
menus- the menus associated with this part. Can be null, which means this part does not have menus.
-
getTitleDecoration
com.google.gwt.user.client.ui.IsWidget getTitleDecoration()
Returns the widget that a panel may choose to display beside this part's title.- Returns:
- The title decoration widget to use. Null means no title decoration.
-
setTitleDecoration
void setTitleDecoration(com.google.gwt.user.client.ui.IsWidget titleDecoration)
Sets 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.
- Parameters:
titleDecoration- The title decoration widget to use. Null is permitted, and means no title decoration.
-
getContextId
String getContextId()
-
setContextId
void setContextId(String contextId)
-
-