org.objectweb.fractal.gui.menu.control
Class SimpleFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byorg.objectweb.fractal.gui.menu.control.SimpleFileFilter

public class SimpleFileFilter
extends FileFilter

Simple FileFilter implementation.


Constructor Summary
SimpleFileFilter(String extension, String description)
          Constructs a new SimpleFileFilter object.
 
Method Summary
 boolean accept(File f)
           
 String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileFilter

public SimpleFileFilter(String extension,
                        String description)
Constructs a new SimpleFileFilter object.

Parameters:
extension - the extension that files must have in order to be accepted by this filter.
description - a short description ot this file filter.
Method Detail

accept

public boolean accept(File f)

getDescription

public String getDescription()