public abstract class AbstractWorkbenchActivity extends AbstractActivity implements WorkbenchActivity
AbstractWorkbenchActivity is not typically subclassed directly, even by generated code. See the more purpose-based subclasses.
open, place, placeManager| Constructor and Description |
|---|
AbstractWorkbenchActivity(PlaceManager placeManager) |
| Modifier and Type | Method and Description |
|---|---|
String |
contextId() |
org.uberfire.workbench.model.Position |
getDefaultPosition()
Specifies custom positioning for this activity's view when the request to launch it comes without specific
positioning information of its own.
|
org.uberfire.workbench.model.menu.Menus |
getMenus() |
org.uberfire.mvp.PlaceRequest |
getOwningPlace()
This default implementation returns null, meaning this activity can be displayed in any perspective.
|
abstract String |
getTitle() |
com.google.gwt.user.client.ui.IsWidget |
getTitleDecoration() |
org.uberfire.workbench.model.toolbar.ToolBar |
getToolBar() |
abstract com.google.gwt.user.client.ui.IsWidget |
getWidget() |
void |
onFocus()
Invoked by the UberFire framework when this activity is the current activity in the current panel.
|
void |
onLostFocus()
Invoked by the UberFire framework when this activity is no longer the current activity in the current panel.
|
boolean |
onMayClose()
Invoked by the framework before this activity is closed, unless the framework has been told to "force close" the
activity.
|
getPlace, onClose, onOpen, onShutdown, onStartup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTitleDecorationElement, getWidgetElement, preferredHeight, preferredWidthpublic AbstractWorkbenchActivity(PlaceManager placeManager)
public org.uberfire.workbench.model.Position getDefaultPosition()
WorkbenchActivityIf this method returns null, UberFire will attempt to add this activity's view directly to the root panel.
Developers of cross-application reusable components should use caution with this feature. If the component declares a default position that is not supported by the root panel the application uses, the application's root panel could throw a ClassCastException when the framework attempts to create the child panel at the given position.
getDefaultPosition in interface WorkbenchActivitypublic org.uberfire.mvp.PlaceRequest getOwningPlace()
getOwningPlace in interface WorkbenchActivitypublic boolean onMayClose()
WorkbenchActivity
The activity can cancel the close operation by returning false from this method. This is most often used
for implementing a "save before closing" workflow.
onMayClose in interface WorkbenchActivityPlaceManager.closeAllPlaces(),
PlaceManager.closePlace(PlaceRequest),
PlaceManager.closePlace(String)public abstract String getTitle()
getTitle in interface WorkbenchActivitypublic com.google.gwt.user.client.ui.IsWidget getTitleDecoration()
getTitleDecoration in interface WorkbenchActivitypublic abstract com.google.gwt.user.client.ui.IsWidget getWidget()
getWidget in interface WorkbenchActivitypublic void onLostFocus()
WorkbenchActivityWorkbenchActivity.onFocus() call.onLostFocus in interface WorkbenchActivityWorkbenchActivity.onLostFocus(),
PanelManager.onPartFocus(org.uberfire.workbench.model.PartDefinition)public void onFocus()
WorkbenchActivityonFocus in interface WorkbenchActivityWorkbenchActivity.onLostFocus(),
PanelManager.onPartFocus(org.uberfire.workbench.model.PartDefinition)public org.uberfire.workbench.model.menu.Menus getMenus()
getMenus in interface WorkbenchActivitypublic org.uberfire.workbench.model.toolbar.ToolBar getToolBar()
getToolBar in interface WorkbenchActivitypublic String contextId()
contextId in interface WorkbenchActivityCopyright © 2012–2017 JBoss by Red Hat. All rights reserved.