daoc.editor.importer
Class ImageFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended bydaoc.editor.importer.ImageFileFilter
All Implemented Interfaces:
IFileValidator

public class ImageFileFilter
extends javax.swing.filechooser.FileFilter
implements IFileValidator

File filter for images.


Constructor Summary
ImageFileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getDescription()
           
 boolean validateSource(java.awt.Component parent, java.io.File source)
          Validates the file format and size.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFileFilter

public ImageFileFilter()
Method Detail

accept

public boolean accept(java.io.File f)

getDescription

public java.lang.String getDescription()

validateSource

public boolean validateSource(java.awt.Component parent,
                              java.io.File source)
Validates the file format and size.

Specified by:
validateSource in interface IFileValidator