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

Quick Search    Search Deep

com.lanceolav.jreftree
Class CustomFileFilter  view CustomFileFilter download CustomFileFilter.java

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended bycom.lanceolav.jreftree.CustomFileFilter

class CustomFileFilter
extends javax.swing.filechooser.FileFilter


Field Summary
private  java.lang.String description
           
private  java.lang.String extension
           
 
Constructor Summary
CustomFileFilter(java.lang.String ext, java.lang.String desc)
           
 
Method Summary
 boolean accept(java.io.File f)
          Whether the given file is accepted by this filter.
 java.lang.String getDescription()
          The description of this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extension

private final java.lang.String extension

description

private final java.lang.String description
Constructor Detail

CustomFileFilter

public CustomFileFilter(java.lang.String ext,
                        java.lang.String desc)
Method Detail

accept

public boolean accept(java.io.File f)
Whether the given file is accepted by this filter.


getDescription

public java.lang.String getDescription()
The description of this filter. For example: "JPG and GIF Images"