|
org.netbeans.core.multiview/1 1.29 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={TYPE,METHOD})
@Retention(value=SOURCE)
public static @interface MultiViewElement.Registration
Registers a 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.
| Required Element Summary | |
|---|---|
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. |
| Optional Element Summary | |
|---|---|
String |
iconBase
Icon for the MultiViewDescription's multiview component. |
int |
position
Position of this element amoung the list of other elements. |
| Element Detail |
|---|
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.
public abstract int position
|
org.netbeans.core.multiview/1 1.29 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||