ch.elca.dependency.gui
Class MyFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--ch.elca.dependency.gui.MyFileFilter

public class MyFileFilter
extends javax.swing.filechooser.FileFilter

A FileFilter used for JFileOpenDialogs within the DependencyTool.

Version:
1.0-beta
Author:
Pawel Kowalski

Method Summary
 boolean accept(java.io.File file)
          Accept a file and return whether it's to be displayed.
 java.lang.String getDescription()
          Get description for this FileFilter.
static javax.swing.filechooser.FileFilter getFileFilter(java.lang.String extension)
          Get a FileFilter accepting files with the specified extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFileFilter

public static javax.swing.filechooser.FileFilter getFileFilter(java.lang.String extension)
Get a FileFilter accepting files with the specified extension.

Parameters:
extension - a String value
Returns:
a FileFilter value

accept

public boolean accept(java.io.File file)
Accept a file and return whether it's to be displayed.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - a File value
Returns:
a boolean value

getDescription

public java.lang.String getDescription()
Get description for this FileFilter.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
a String value


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.