@Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface WorkbenchScreen
@WorkbenchEditor.
All classes annotated with @WorkbenchScreen must have a declared or inherited method annotated with
@WorkbenchPartTitle.
There are two options for providing the screen's view:
com.google.gwt.user.client.ui.IsWidget (often by extending com.google.gwt.user.client.ui.Composite)
@WorkbenchPartView that returns the
com.google.gwt.user.client.ui.IsWidget or preferably
org.jboss.errai.common.client.api.IsElement that handles the view. In this case the class need not
implement com.google.gwt.user.client.ui.IsWidget.
Developers wishing to separate view from logic via the MVP pattern will choose the second option.
WorkbechScreens can receive the following life-cycle calls:
@OnStartup@OnOpen@OnFocus@OnLostFocus@OnMayClose@OnClose@OnShutdown| Modifier and Type | Required Element and Description |
|---|---|
String |
identifier
Identifier that should be unique within application.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
isDynamic
Indicates that this screen can be discovered and loaded at runtime.
|
Class<?> |
owningPerspective
By default, a Workbench Screen will show up in the current active perspective.
|
int |
preferredHeight
Defines the preferred height.
|
int |
preferredWidth
Defines the preferred width.
|
public abstract String identifier
public abstract Class<?> owningPerspective
public abstract int preferredHeight
public abstract int preferredWidth
public abstract boolean isDynamic
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.