jdraw.file
Class FileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--jdraw.file.FileFilter

public class FileFilter
extends javax.swing.filechooser.FileFilter

This object is used to determine which files can be opened or saved by JDraw


Constructor Summary
FileFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Returns a boolean specifying whether to accept the passed in java.io.File
 java.lang.String getDescription()
          Returns a String description of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileFilter

public FileFilter()
Method Detail

accept

public boolean accept(java.io.File file)
Returns a boolean specifying whether to accept the passed in java.io.File
Overrides:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - - java.io.File to test if it should be accepted
Returns:
- boolean specifying whether to accept this file or not

getDescription

public java.lang.String getDescription()
Returns a String description of this object
Overrides:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
- String that describes this object