|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
uk.co.javagear.RomFilter
public class RomFilter
JavaGear File Filters (Code from "Core Java Volume #1").
| Constructor Summary | |
|---|---|
RomFilter()
|
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File f)
Returns true if the file given is accepted and false otherwise. |
java.lang.String |
getDescription()
Returns a description of this filter, "All ROMs (*.SMS, *.GG, *.ZIP)". |
protected static java.lang.String |
getExtension(java.io.File f)
Returns a file's extension in lowercase characters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RomFilter()
| Method Detail |
|---|
public boolean accept(java.io.File f)
true if the file given is accepted and false otherwise.
This filter accepts all directories and files with extension sms,
gg or zip.
accept in class javax.swing.filechooser.FileFilterf - the instance of File to accept or reject.
true if the file given is accepted and false otherwise.public java.lang.String getDescription()
"All ROMs (*.SMS, *.GG, *.ZIP)".
getDescription in class javax.swing.filechooser.FileFilter"All ROMs (*.SMS, *.GG, *.ZIP)".protected static java.lang.String getExtension(java.io.File f)
f - a non-null instance of File.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||