uk.co.javagear
Class GGFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by uk.co.javagear.RomFilter
          extended by uk.co.javagear.GGFilter

public class GGFilter
extends RomFilter

JavaGear File Filters (Code from "Core Java Volume #1").

Version:
17th March 2002
Author:
Copyright (C) 2002 Chris White
See Also:
"JavaGear Final Project Report"

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

GGFilter

public GGFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Returns true if the file given is accepted and false otherwise. This filter accepts all directories and files with extension gg.

Overrides:
accept in class RomFilter
Parameters:
f - the instance of File to accept or reject.
Returns:
true if the file given is accepted and false otherwise.

getDescription

public java.lang.String getDescription()
Returns a description of this filter, "Sega Game Gear ROMs (*.GG)".

Overrides:
getDescription in class RomFilter
Returns:
a description of this filter, "Sega Game Gear ROMs (*.GG)".


Copyright © 2007 JavaGear. All Rights Reserved.