@Retention(value=RUNTIME) @Target(value=TYPE) public static @interface TopComponent.Description
TopComponent
.
Using this annotation is preferred to overriding TopComponent.Description.preferredID()
,
TopComponent.getPersistenceType()
, or TopComponent.getIcon()
, or calling TopComponent.setIcon(java.awt.Image)
.Modifier and Type | Required Element and Description |
---|---|
String |
preferredID
The default value for
TopComponent.preferredID() . |
Modifier and Type | Optional Element and Description |
---|---|
String |
iconBase
The icon to load for
TopComponent.getIcon() . |
int |
persistenceType
Default value for
TopComponent.getPersistenceType() . |
public abstract String preferredID
TopComponent.preferredID()
.
It can consist only of upper and lower case letters, digits and '-' or '_' characters.
If the TopCopmponent is a singleton then you can use this id to
lookup the TopComponent in WindowManager.findTopComponent(java.lang.String)
public abstract String iconBase
TopComponent.getIcon()
.public abstract int persistenceType
TopComponent.getPersistenceType()
.TopComponent.PERSISTENCE_ALWAYS
,
TopComponent.PERSISTENCE_NEVER
,
TopComponent.PERSISTENCE_ONLY_OPENED