|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openide.loaders.ExtensionList
Property class that collects a modifiable list of file extensions and permits checking of whether a name or a file object has a given extension. It comes with a property editor to allow the user to modify the extensions.
| Constructor Summary | |
ExtensionList()
Default constructor. |
|
| Method Summary | |
void |
addExtension(String ext)
Add a new extension. |
void |
addMimeType(String mime)
Adds new mime type. |
Object |
clone()
Clone new object. |
Enumeration |
extensions()
Get all extensions. |
boolean |
isRegistered(FileObject fo)
Tests whether the file object is acceptable. |
boolean |
isRegistered(String s)
Test whether the name in the string is acceptable. |
Enumeration |
mimeTypes()
Get all mime types. |
void |
removeExtension(String ext)
Remove an extension. |
void |
removeMimeType(String mime)
Removes a mime type. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExtensionList()
| Method Detail |
public Object clone()
clone in class Objectpublic void addExtension(String ext)
ext - the extensionpublic void removeExtension(String ext)
ext - the extensionpublic void addMimeType(String mime)
mime - the mime typepublic void removeMimeType(String mime)
mime - the name of the typepublic boolean isRegistered(String s)
s - the nametrue if the name is acceptablepublic boolean isRegistered(FileObject fo)
fo - the file object to testtrue if the file object is acceptablepublic Enumeration extensions()
Stringspublic Enumeration mimeTypes()
Strings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||