org.osgi.service.metatype.annotations
Annotation Type Icon


@Retention(value=CLASS)
@Target(value={})
public @interface Icon

Icon information for an ObjectClassDefinition.

Author:
$Id: e9e89ed20e3fc24a1f1e74324fe2b717ebecad45 $
See Also:
ObjectClassDefinition.icon()

Required Element Summary
 String resource
          The resource name for this Icon.
 int size
          The pixel size of this Icon.
 

Element Detail

resource

public abstract String resource
The resource name for this Icon.

The resource is a URL. The resource URL can be relative to the root of the bundle containing the Meta Type Resource.

If the resource begins with the percent sign ('%' \u0025), the resource can be localized.

See Also:
"The resource attribute of the Icon element of a Meta Type Resource."

size

public abstract int size
The pixel size of this Icon.

For example, 32 represents a 32x32 icon.

See Also:
"The size attribute of the Icon element of a Meta Type Resource."


Copyright © 2014 aQute SARL. All rights reserved.