com.alee.utils.filefilter
Class AbstractFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.alee.utils.filefilter.AbstractFileFilter
All Implemented Interfaces:
Filter<java.io.File>, java.io.FileFilter
Direct Known Subclasses:
AllFilesFilter, CustomFileFilter, DirectoriesFilter, FilesFilter, GroupedFileFilter, ImageFilesFilter, NonHiddenFilter

public abstract class AbstractFileFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FileFilter, Filter<java.io.File>

Default file filter for WebLaF file chooser that provides additional filter information. This class overrides IO, Swing and utils filter classes.

Author:
Mikle Garin

Constructor Summary
AbstractFileFilter()
           
 
Method Summary
abstract  boolean accept(java.io.File file)
          Returns whether the given file is accepted by this filter or not.
abstract  java.lang.String getDescription()
          Returns short file filter description.
abstract  javax.swing.ImageIcon getIcon()
          Returns file filter icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFileFilter

public AbstractFileFilter()
Method Detail

getIcon

public abstract javax.swing.ImageIcon getIcon()
Returns file filter icon.

Returns:
file filter icon

getDescription

public abstract java.lang.String getDescription()
Returns short file filter description.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
short file filter description

accept

public abstract boolean accept(java.io.File file)
Returns whether the given file is accepted by this filter or not.

Specified by:
accept in interface Filter<java.io.File>
Specified by:
accept in interface java.io.FileFilter
Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - file to process
Returns:
true if the given file is accepted by this filter, false otherwise