|
org.openide.loaders 5.9.31 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.loaders.ExtensionList
public class 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. |
boolean |
equals(Object o)
|
Enumeration |
extensions()
Get all extensions. |
int |
hashCode()
|
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExtensionList()
| Method Detail |
|---|
public Object clone()
public 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 name
true if the name is acceptablepublic boolean isRegistered(FileObject fo)
fo - the file object to test
true if the file object is acceptablepublic Enumeration extensions()
Stringspublic Enumeration mimeTypes()
Stringspublic String toString()
public boolean equals(Object o)
public int hashCode()
|
org.openide.loaders 5.9.31 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||