org.sf.cafebabe
Class ClassFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.sf.cafebabe.ClassFileFilter

public class ClassFileFilter
extends javax.swing.filechooser.FileFilter

Class that represents the filter of class files for custom file chooser

Version:
1.0 01/27/2002
Author:
Alexander Shvets

Constructor Summary
ClassFileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Returns wehether the given file is accepted by this filter.
 java.lang.String getDescription()
          Gets the description of the filter in drop-down list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFileFilter

public ClassFileFilter()
Method Detail

getDescription

public java.lang.String getDescription()
Gets the description of the filter in drop-down list

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
the description of the filter

accept

public boolean accept(java.io.File f)
Returns wehether the given file is accepted by this filter.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Returns:
true if the given file is accepted by this filter; false otherwise


Copyright 2006 Dream Programs Inc.. All Rights Reserved.