tico.components.resources
Class CustomFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by tico.components.resources.CustomFilter

public class CustomFilter
extends javax.swing.filechooser.FileFilter

Filter that can be set on a JFileChooser to display only files with the specified extension and directories.

Version:
1.0 Nov 20, 2006
Author:
Pablo Muñoz

Constructor Summary
CustomFilter(java.lang.String extension)
          Creates a new CustomFilter with the specified extension.
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFilter

public CustomFilter(java.lang.String extension)
Creates a new CustomFilter with the specified extension.

Parameters:
extension - The specified extension
Method Detail

accept

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

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter