Package org.uberfire.client.mvp
Class AbstractWorkbenchScreenActivity
- java.lang.Object
-
- org.uberfire.client.mvp.AbstractActivity
-
- org.uberfire.client.mvp.AbstractWorkbenchActivity
-
- org.uberfire.client.mvp.AbstractWorkbenchScreenActivity
-
- All Implemented Interfaces:
Activity,ContextSensitiveActivity,WorkbenchActivity,WorkbenchScreenActivity,org.uberfire.security.authz.RuntimeFeatureResource,org.uberfire.security.authz.RuntimeResource,org.uberfire.security.Resource
public abstract class AbstractWorkbenchScreenActivity extends AbstractWorkbenchActivity implements WorkbenchScreenActivity
Implementation of behaviour common to all workbench screen activities. Concrete implementations are typically generated from classes annotated withWorkbenchScreen, but it is permissible for applications to extend this class directly instead of using the@WorkbenchScreenannotation.When implementing a Screen by extending this class, you must follow three rules:
- mark it as a
@Dependentbean; - specify its place ID via the
@Namedannotation; - include an
@Injectconstructor that passes thePlaceManagerup to the super constructor.
-
-
Field Summary
-
Fields inherited from class org.uberfire.client.mvp.AbstractActivity
open, place, placeManager
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkbenchScreenActivity(PlaceManager placeManager)Passes the given PlaceManager up to the superclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.uberfire.security.ResourceTypegetResourceType()-
Methods inherited from class org.uberfire.client.mvp.AbstractWorkbenchActivity
contextId, getDefaultPosition, getMenus, getOwningPlace, getTitle, getTitleDecoration, getToolBar, getWidget, onFocus, onLostFocus, onMayClose
-
Methods inherited from class org.uberfire.client.mvp.AbstractActivity
getPlace, onClose, onOpen, onShutdown, onStartup, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.uberfire.client.mvp.Activity
getName, getPlace, isDefault, isDynamic, onClose, onOpen, onShutdown, onStartup
-
Methods inherited from interface org.uberfire.security.Resource
getDependencies, getIdentifier, isType
-
Methods inherited from interface org.uberfire.client.mvp.WorkbenchActivity
contextId, getDefaultPosition, getMenus, getOwningPlace, getTitle, getTitleDecoration, getTitleDecorationElement, getToolBar, getWidget, getWidgetElement, onFocus, onLostFocus, onMayClose, preferredHeight, preferredWidth
-
-
-
-
Constructor Detail
-
AbstractWorkbenchScreenActivity
public AbstractWorkbenchScreenActivity(PlaceManager placeManager)
Passes the given PlaceManager up to the superclass.In order to make the
super()call to this constructor, subclasses should declare their own constructor that takes aPlaceManagerplus any other dependencies required by the screen, and annotate that constructor with@Inject.- Parameters:
placeManager- The PlaceManager in force for the current application. Must not be null.
-
-