01: /*
02: * Author: Chris Seguin
03: *
04: * This software has been developed under the copyleft
05: * rules of the GNU General Public License. Please
06: * consult the GNU General Public License for more
07: * details about use and distribution of this software.
08: */
09: package org.acm.seguin.io;
10:
11: import javax.swing.filechooser.FileFilter;
12: import java.io.File;
13:
14: /**
15: * Accepts all files
16: *
17: *@author Chris Seguin
18: *@created May 30, 1999
19: */
20: public class AllFileFilter extends FileFilter {
21:
22: /**
23: * Return the description of the files accepted
24: *
25: *@return the description to be displayed in the file box
26: */
27: public String getDescription() {
28: return "All Files (*.*)";
29: }
30:
31: /**
32: * Should this file be accepted
33: *
34: *@param file the file under consideration
35: *@return true - all files are accepted
36: */
37: public boolean accept(File file) {
38: return true;
39: }
40: }
|