@Retention(RUNTIME) @Target(TYPE) public static @interface TopComponent.Description
TopComponent
.
Using this annotation is preferred to overriding preferredID()
,
TopComponent.getPersistenceType()
, or TopComponent.getIcon()
, or calling TopComponent.setIcon(java.awt.Image)
.Modifier and Type | Required Element | Description |
---|---|---|
String |
preferredID |
The default value for
TopComponent.preferredID() . |
Modifier and Type | Optional Element | Description |
---|---|---|
String |
iconBase |
The icon to load for
TopComponent.getIcon() . |
int |
persistenceType |
Default value for
TopComponent.getPersistenceType() . |
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)
String iconBase
TopComponent.getIcon()
.int persistenceType
TopComponent.getPersistenceType()
.TopComponent.PERSISTENCE_ALWAYS
,
TopComponent.PERSISTENCE_NEVER
,
TopComponent.PERSISTENCE_ONLY_OPENED
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.