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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTitleDecorationElement, getWidgetElement, preferredHeight, preferredWidth
public AbstractWorkbenchActivity(PlaceManager placeManager)
public org.uberfire.workbench.model.Position getDefaultPosition()
WorkbenchActivity
If 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 WorkbenchActivity
public org.uberfire.mvp.PlaceRequest getOwningPlace()
getOwningPlace
in interface WorkbenchActivity
public 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 WorkbenchActivity
PlaceManager.closeAllPlaces()
,
PlaceManager.closePlace(PlaceRequest)
,
PlaceManager.closePlace(String)
public abstract String getTitle()
getTitle
in interface WorkbenchActivity
public com.google.gwt.user.client.ui.IsWidget getTitleDecoration()
getTitleDecoration
in interface WorkbenchActivity
public abstract com.google.gwt.user.client.ui.IsWidget getWidget()
getWidget
in interface WorkbenchActivity
public void onLostFocus()
WorkbenchActivity
WorkbenchActivity.onFocus()
call.onLostFocus
in interface WorkbenchActivity
WorkbenchActivity.onLostFocus()
,
PanelManager.onPartFocus(org.uberfire.workbench.model.PartDefinition)
public void onFocus()
WorkbenchActivity
onFocus
in interface WorkbenchActivity
WorkbenchActivity.onLostFocus()
,
PanelManager.onPartFocus(org.uberfire.workbench.model.PartDefinition)
public org.uberfire.workbench.model.menu.Menus getMenus()
getMenus
in interface WorkbenchActivity
public org.uberfire.workbench.model.toolbar.ToolBar getToolBar()
getToolBar
in interface WorkbenchActivity
public String contextId()
contextId
in interface WorkbenchActivity
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.