uk.co.javagear
Class SMSFilter

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

public class SMSFilter
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
SMSFilter()
           
 
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 Master System ROMs (*.sms)".
 
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

SMSFilter

public SMSFilter()
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 sms.

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 Master System ROMs (*.sms)".

Overrides:
getDescription in class RomFilter
Returns:
a description of this filter, "Sega Master System ROMs (*.sms)".


Copyright © 2007 JavaGear. All Rights Reserved.