20120618, rgf

org.oorexx.misc
Class Test

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.oorexx.misc.Test
All Implemented Interfaces:
java.io.FilenameFilter

public class Test
extends javax.swing.filechooser.FileFilter
implements java.io.FilenameFilter


Constructor Summary
Test()
           
 
Method Summary
 boolean accept(java.io.File f)
           
 boolean accept(java.io.File dir, java.lang.String fname)
          Method which gets invoked by java.awt.FileDialog to test the file for inclusion in the file list.
 java.lang.String getDescription()
          Returns the present description for the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Test

public Test()
Method Detail

getDescription

public java.lang.String getDescription()
Returns the present description for the filter.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter

accept

public boolean accept(java.io.File f)
Specified by:
accept in class javax.swing.filechooser.FileFilter

accept

public boolean accept(java.io.File dir,
                      java.lang.String fname)
Method which gets invoked by java.awt.FileDialog to test the file for inclusion in the file list.

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - the directory of the file
fname - the file's name
Returns:
true, if the file should be included in the file list, false else

20120618, rgf