@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 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 |
|---|---|
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
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.