@Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface WorkbenchEditor
At its simplest form the Class should implement
com.google.gwt.user.client.ui.IsWidget
(e.g. extend
com.google.gwt.user.client.ui.Composite
) and provide a method
annotated with @WorkbenchPartTitle
.
Developers wishing to separate view from logic (perhaps by implementing the
MVP pattern) can further provide a zero-argument method annotated with
@WorkbenchPartView
with return type
com.google.gwt.user.client.ui.IsWidget
.
In this latter case the @WorkbenchEditor
need not implement
com.google.gwt.user.client.ui.IsWidget
.
WorkbechEditors can receive the following life-cycle calls:
@OnStartup(org.drools.guvnor.vfs.Path)
@OnOpen
@OnFocus
@OnLostFocus
@OnMayClose
@OnClose
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.
|
WorkbenchEditor.LockingStrategy |
lockingStrategy
Defines how and if locks are acquired when using this editor.
|
Class<?> |
owningPerspective
By default, a Workbench Editor will show up in the current active perspective.
|
int |
preferredHeight
Defines the preferred height.
|
int |
preferredWidth
Defines the preferred width.
|
int |
priority
Defines the priority of editor over type resolution, editors with same supported type will be resolved by priority.
|
Class<? extends ClientResourceType>[] |
supportedTypes
Array that defines all supported types of this editor.
|
public abstract String identifier
public abstract Class<? extends ClientResourceType>[] supportedTypes
public abstract int priority
public abstract Class<?> owningPerspective
public abstract int preferredHeight
public abstract int preferredWidth
public abstract WorkbenchEditor.LockingStrategy lockingStrategy
public abstract boolean isDynamic
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.