org.openide.loaders 7.37

org.openide.loaders
Annotation Type DataObject.Registration


@Retention(value=SOURCE)
@Target(value=TYPE)
public static @interface DataObject.Registration

Registers new file type into the system. Apply this annotation to a class that extends either (@link org.openide.loaders.DataObject.Factory) or (@link org.openide.loaders.DataObject). This methods generates a layer registration as described by DataLoaderPool.factory(java.lang.Class, java.lang.String, java.awt.Image).

Since:
7.36

Required Element Summary
 String mimeType
          Mime type or list of mime types to recognize.
 
Optional Element Summary
 String displayName
          Display name for the file type created by this registration.
 String iconBase
          Path to icon to be used by default for nodes created by this registration.
 int position
          Position of the registration among other factories registered for the given mime type.
 

Element Detail

mimeType

public abstract String mimeType
Mime type or list of mime types to recognize. Use MIMEResolver.ExtensionRegistration and co. to assign a mime types to files in the system.

displayName

public abstract String displayName
Display name for the file type created by this registration.

Default:
""

iconBase

public abstract String iconBase
Path to icon to be used by default for nodes created by this registration.

Default:
""

position

public abstract int position
Position of the registration among other factories registered for the given mime type.

Default:
2147483647

org.openide.loaders 7.37

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.