|
org.netbeans.api.annotations.common/1 1.17.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=FIELD) @Retention(value=SOURCE) @Documented public @interface StaticResource
Marker for a constant representing a static resource.
The annotated field must be a compile-time String constant whose value denotes a resource path.
For example, the resource might be an icon path intended for ImageUtilities.loadImage.
The primary purpose of the annotation is for its processor, which will signal a compile-time error
if the resource does not in fact exist - ensuring that at least this usage will not be accidentally
broken by moving, renaming, or deleting the resource.
| Optional Element Summary | |
|---|---|
boolean |
relative
If true, consider the resource path to be relative to the current package. |
boolean |
searchClasspath
If true, permit the resource to be in the classpath. |
public abstract boolean searchClasspath
public abstract boolean relative
../ sequences are permitted.)
By default, it must be an absolute path (not starting with /).
|
org.netbeans.api.annotations.common/1 1.17.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||