appli.sqlplayer.gui
Class SQLFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byappli.sqlplayer.gui.SQLFileFilter

public class SQLFileFilter
extends javax.swing.filechooser.FileFilter

This is a FileFilter to show only directories and SQL files (with name in the format sql*.prm)

Version:
1.0 June 2003
Author:
Marc Wenger/CDS

Constructor Summary
SQLFileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Accept only Directories and SQL Files in this File Filter
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLFileFilter

public SQLFileFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Accept only Directories and SQL Files in this File Filter

Parameters:
f - File object coming from the fileChooser for which the decision should be made whether it is selected or not
Returns:
true if the current File object is either a directory or an sql parameters file

getDescription

public java.lang.String getDescription()
Returns:
a description of this XMLFileFilter