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

Quick Search    Search Deep

VjGUI
Class SuffixFilter  view SuffixFilter download SuffixFilter.java

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byVjGUI.SuffixFilter

public class SuffixFilter
extends javax.swing.filechooser.FileFilter


Field Summary
(package private)  java.lang.String name
           
(package private)  java.util.Vector suffixes
           
 
Constructor Summary
(package private) SuffixFilter(java.lang.String _name, java.lang.String _suffix)
           
 
Method Summary
 boolean accept(java.io.File f)
          Returns true if the specified file matches the filter, and false otherwise.
(package private)  void addSuffix(java.lang.String _suffix)
           
 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

name

java.lang.String name

suffixes

java.util.Vector suffixes
Constructor Detail

SuffixFilter

SuffixFilter(java.lang.String _name,
             java.lang.String _suffix)
Method Detail

addSuffix

void addSuffix(java.lang.String _suffix)

accept

public boolean accept(java.io.File f)
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).