mastermind.client
Class MMFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by mastermind.client.MMFileFilter

public class MMFileFilter
extends javax.swing.filechooser.FileFilter

Mastermind GUI: File Filter: DAT-Files only


Constructor Summary
MMFileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Accept only dat-files
 java.lang.String getDescription()
          Description for FileOpen/SaveDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMFileFilter

public MMFileFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Accept only dat-files

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - File to check
Returns:
true if dat-file (or directory), otherwise false

getDescription

public java.lang.String getDescription()
Description for FileOpen/SaveDialog

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
String DAT-Files only