com.alee.utils.filefilter
Class CustomFileFilter

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

public abstract class CustomFileFilter
extends AbstractFileFilter

Custom file filter class.

Author:
Mikle Garin

Field Summary
protected  java.lang.String description
          File filter description.
protected  javax.swing.ImageIcon icon
          File filter icon.
 
Constructor Summary
CustomFileFilter(javax.swing.ImageIcon icon, java.lang.String description)
          Constructs new custom file filter.
 
Method Summary
 java.lang.String getDescription()
          Returns short file filter description.
 javax.swing.ImageIcon getIcon()
          Returns file filter icon.
 void setDescription(java.lang.String description)
          Sets short file filter description.
 void setIcon(javax.swing.ImageIcon icon)
          Sets file filter icon.
 
Methods inherited from class com.alee.utils.filefilter.AbstractFileFilter
accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

icon

protected javax.swing.ImageIcon icon
File filter icon.


description

protected java.lang.String description
File filter description.

Constructor Detail

CustomFileFilter

public CustomFileFilter(javax.swing.ImageIcon icon,
                        java.lang.String description)
Constructs new custom file filter.

Parameters:
icon - file filter icon
description - file filter description
Method Detail

getIcon

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

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

setIcon

public void setIcon(javax.swing.ImageIcon icon)
Sets file filter icon.

Parameters:
icon - new 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

setDescription

public void setDescription(java.lang.String description)
Sets short file filter description.

Parameters:
description - new short file filter description