@Target(value={TYPE,METHOD}) @Retention(value=SOURCE) public static @interface MultiViewElement.Registration
MultiViewElement
, so it is available in
MimeLookup
and can be found and located by
MultiViews.createCloneableMultiView(java.lang.String, T)
and
MultiViews.createMultiView(java.lang.String, T)
factory methods.
The element class may have default constructor or a constructor that
takes Lookup
as an argument. Similarly for a factory method.
Modifier and Type | Required Element and Description |
---|---|
String |
displayName
Gets localized display name of multi view element.
|
String[] |
mimeType
Mime type this registration is associated with.
|
int |
persistenceType
Gets persistence type of multi view element, the TopComponent will decide
on it's own persistenceType based on the sum of all it's elements.
|
String |
preferredID
A Description's contribution
to unique
TopComponent 's Id returned by getID . |
public abstract String[] mimeType
public abstract int persistenceType
TopComponent.PERSISTENCE_ALWAYS
has higher priority than TopComponent.PERSISTENCE_ONLY_OPENED
and TopComponent.PERSISTENCE_NEVER
has lowest priority.
The TopComponent
will be stored only if at least one element requesting persistence
was made visible.public abstract String displayName
public abstract String preferredID
TopComponent
's Id returned by getID
. Returned value is used as starting
value for creating unique TopComponent
ID for whole enclosing multi view
component.
Value should be preferably unique, but need not be.public abstract String iconBase
MultiViewDescription
.