@Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface WorkbenchPerspective
There are two options for defining the arrangement of panels and parts within the perspective: either
programmatically build a PerspectiveDefinition
object, or declare panel structure and content using Errai UI
templates. Note that you cannot mix the two approaches.
@Perspective
that returns a PerspectiveDefinition
.
WorkbenchPanel
annotation to one or more of its @DataField
widgets. This designates them as panel
containers and allows you to specify which parts should be added to them when the perspective launches.
@OnStartup
@OnOpen
@OnClose
@OnShutdown
Modifier and Type | Required Element and Description |
---|---|
String |
identifier
The place ID to associate with this perspective.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
isDefault
Indicates that this perspective should be opened by default when the
workbench first starts.
|
boolean |
isDynamic
Indicates that this perspective can be discovered and loaded at runtime.
|
boolean |
isTransient
If true (the default), every time this perspective is displayed, it
should start fresh with the
PerspectiveDefinition returned by the
method annotated with @Perspective . |
public abstract String identifier
PlaceRequest
public abstract boolean isDefault
public abstract boolean isTransient
PerspectiveDefinition
returned by the
method annotated with @Perspective
. If false, the framework will
store the structure of the perspective (panel arrangements and part
placement as modified by the user opening and closing tabs, dragging
parts around, and resizing split panels) on the server individually for
each user, and use that stored definition in preference to the one
returned by the @Perspective
method.public abstract boolean isDynamic
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.