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

Quick Search    Search Deep

com.barteo.emulator.app.ui.swing
Class ExtensionFileFilter  view ExtensionFileFilter download ExtensionFileFilter.java

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended bycom.barteo.emulator.app.ui.swing.ExtensionFileFilter

public class ExtensionFileFilter
extends javax.swing.filechooser.FileFilter


Field Summary
(package private)  java.lang.String description
           
(package private)  java.util.Hashtable extensions
           
 
Constructor Summary
ExtensionFileFilter(java.lang.String description)
           
 
Method Summary
 boolean accept(java.io.File file)
          Returns true if the specified file matches the filter, and false otherwise.
 void addExtension(java.lang.String extension)
           
 java.lang.String getDescription()
          Returns a description of the files that will be selected by the filter (for example, "Java source files").
(package private)  java.lang.String getExtension(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

java.lang.String description

extensions

java.util.Hashtable extensions
Constructor Detail

ExtensionFileFilter

public ExtensionFileFilter(java.lang.String description)
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.


addExtension

public void addExtension(java.lang.String extension)

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).


getExtension

java.lang.String getExtension(java.io.File file)