com.alee.utils.filefilter
Class AllFilesFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.alee.utils.filefilter.AbstractFileFilter
          extended by com.alee.utils.filefilter.AllFilesFilter
All Implemented Interfaces:
Filter<java.io.File>, java.io.FileFilter

public class AllFilesFilter
extends AbstractFileFilter

Custom file filter that accepts all files.

Author:
Mikle Garin

Field Summary
static javax.swing.ImageIcon ICON
          Filter icon.
 
Constructor Summary
AllFilesFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Returns whether the given file is accepted by this filter or not.
 java.lang.String getDescription()
          Returns short file filter description.
 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
 

Field Detail

ICON

public static final javax.swing.ImageIcon ICON
Filter icon.

Constructor Detail

AllFilesFilter

public AllFilesFilter()
Method Detail

getIcon

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

Specified by:
getIcon in class AbstractFileFilter
Returns:
file filter icon

getDescription

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

Specified by:
getDescription in class AbstractFileFilter
Returns:
short file filter description

accept

public 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 AbstractFileFilter
Parameters:
file - file to process
Returns:
true if the given file is accepted by this filter, false otherwise