Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hexidec.ekit.component
Class MutableFilter  view MutableFilter download MutableFilter.java

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended bycom.hexidec.ekit.component.MutableFilter

public class MutableFilter
extends javax.swing.filechooser.FileFilter

Class for providing JFileChooser with a FileFilter


Field Summary
private  java.lang.String[] acceptableExtensions
           
private  java.lang.String descriptor
           
 
Constructor Summary
MutableFilter(java.lang.String[] exts, java.lang.String desc)
           
 
Method Summary
 boolean accept(java.io.File file)
          Returns true if the specified file matches the filter, and false otherwise.
 java.lang.String getDescription()
          Returns a description of the files that will be selected by the filter (for example, "Java source files").
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

acceptableExtensions

private java.lang.String[] acceptableExtensions

descriptor

private java.lang.String descriptor
Constructor Detail

MutableFilter

public MutableFilter(java.lang.String[] exts,
                     java.lang.String desc)
Method Detail

accept

public boolean accept(java.io.File file)
Description copied from class: javax.swing.filechooser.FileFilter
Returns true if the specified file matches the filter, and false otherwise.


getDescription

public java.lang.String getDescription()
Description copied from class: javax.swing.filechooser.FileFilter
Returns a description of the files that will be selected by the filter (for example, "Java source files"). This description will usually be displayed on the javax.swing.JFileChooser component, often in a combo box that is used to select the appropriate filter (in cases where more than one filter is available).