public abstract class AbstractWorkbenchPartPresenter extends Object implements WorkbenchPartPresenter
WorkbenchPartPresenter.View
Constructor and Description |
---|
AbstractWorkbenchPartPresenter(WorkbenchPartPresenter.View view) |
Modifier and Type | Method and Description |
---|---|
String |
getContextId() |
PartDefinition |
getDefinition() |
void |
getMenus(Consumer<Menus> menusConsumer)
Returns the menus associated with this part.
|
WorkbenchPartPresenter.View |
getPartView() |
String |
getTitle()
Returns the text that a panel may choose to display beside this part's title.
|
com.google.gwt.user.client.ui.IsWidget |
getTitleDecoration()
Returns the widget that a panel may choose to display beside this part's title.
|
void |
setContextId(String contextId) |
void |
setDefinition(PartDefinition definition) |
void |
setMenus(Menus menus)
Sets the menus associated with this part.
|
void |
setTitle(String title)
Sets the text that a panel may choose to display beside this part's title.
|
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.
|
void |
setWrappedWidget(com.google.gwt.user.client.ui.IsWidget widget) |
@Inject public AbstractWorkbenchPartPresenter(WorkbenchPartPresenter.View view)
public PartDefinition getDefinition()
getDefinition
in interface WorkbenchPartPresenter
public void setDefinition(PartDefinition definition)
setDefinition
in interface WorkbenchPartPresenter
public WorkbenchPartPresenter.View getPartView()
getPartView
in interface WorkbenchPartPresenter
public void setWrappedWidget(com.google.gwt.user.client.ui.IsWidget widget)
setWrappedWidget
in interface WorkbenchPartPresenter
public String getTitle()
WorkbenchPartPresenter
MultiTabWorkbenchPanelPresenter
uses this text for the tab's label.getTitle
in interface WorkbenchPartPresenter
public void setTitle(String title)
WorkbenchPartPresenter
MultiTabWorkbenchPanelPresenter
uses this text for the tab's label.setTitle
in interface WorkbenchPartPresenter
title
- The title of this part. Null is not permitted.public void getMenus(Consumer<Menus> menusConsumer)
WorkbenchPartPresenter
getMenus
in interface WorkbenchPartPresenter
public void setMenus(Menus menus)
WorkbenchPartPresenter
setMenus
in interface WorkbenchPartPresenter
menus
- the menus associated with this part. Can be null, which means this part does not have menus.public com.google.gwt.user.client.ui.IsWidget getTitleDecoration()
WorkbenchPartPresenter
getTitleDecoration
in interface WorkbenchPartPresenter
public void setTitleDecoration(com.google.gwt.user.client.ui.IsWidget titleDecoration)
WorkbenchPartPresenter
NOTE: presently, none of the built-in panel types display a part's title decoration.
setTitleDecoration
in interface WorkbenchPartPresenter
titleDecoration
- The title decoration widget to use. Null is permitted, and means no title decoration.public String getContextId()
getContextId
in interface WorkbenchPartPresenter
public void setContextId(String contextId)
setContextId
in interface WorkbenchPartPresenter
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.