public abstract class AbstractWorkbenchScreenActivity extends AbstractWorkbenchActivity implements WorkbenchScreenActivity
WorkbenchScreen
, but it is permissible for applications to extend this
class directly instead of using the @WorkbenchScreen
annotation.
When implementing a Screen by extending this class, you must follow three rules:
@Dependent
bean;
@Named
annotation;
@Inject
constructor that passes the PlaceManager
up to
the super constructor.
open, place, placeManager
Constructor and Description |
---|
AbstractWorkbenchScreenActivity(PlaceManager placeManager)
Passes the given PlaceManager up to the superclass.
|
Modifier and Type | Method and Description |
---|---|
ResourceType |
getResourceType() |
contextId, getDefaultPosition, getMenus, getOwningPlace, getTitle, getTitleDecoration, getToolBar, getWidget, onFocus, onLostFocus, onMayClose
getPlace, onClose, onOpen, onShutdown, onStartup, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contextId, getDefaultPosition, getMenus, getOwningPlace, getTitle, getTitleDecoration, getTitleDecorationElement, getToolBar, getWidget, getWidgetElement, onFocus, onLostFocus, onMayClose, preferredHeight, preferredWidth
getName, getPlace, isDefault, isDynamic, onClose, onOpen, onShutdown, onStartup
getDependencies, getIdentifier, isType
public AbstractWorkbenchScreenActivity(PlaceManager placeManager)
In order to make the super()
call to this constructor, subclasses should declare their own constructor
that takes a PlaceManager
plus any other dependencies required by the screen, and annotate that
constructor with @Inject
.
placeManager
- The PlaceManager in force for the current application. Must not be null.public ResourceType getResourceType()
getResourceType
in interface Resource
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.