|
|||||||||
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
uk.co.javagear.GGFilter
public class GGFilter
JavaGear File Filters (Code from "Core Java Volume #1").
Constructor Summary | |
---|---|
GGFilter()
|
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, "Sega Game Gear ROMs (*.GG)" . |
Methods inherited from class uk.co.javagear.RomFilter |
---|
getExtension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GGFilter()
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 gg
.
accept
in class RomFilter
f
- the instance of File
to accept or reject.
true
if the file given is accepted and false
otherwise.public java.lang.String getDescription()
"Sega Game Gear ROMs (*.GG)"
.
getDescription
in class RomFilter
"Sega Game Gear ROMs (*.GG)"
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |