@Target({TYPE,METHOD}) @Retention(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 | 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 . |
String[] mimeType
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.String displayName
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.String iconBase
MultiViewDescription
.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.