|
org.openide.loaders 7.37 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@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).
| 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 |
|---|
public abstract String mimeType
MIMEResolver.ExtensionRegistration and co. to assign
a mime types to files in the system.
public abstract String displayName
public abstract String iconBase
public abstract int position
factories registered for the given
mime type.
|
org.openide.loaders 7.37 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||