edu.princeton.wordnet.browser.component
Class FileDialogs.XFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by edu.princeton.wordnet.browser.component.FileDialogs.XFileFilter
Enclosing class:
FileDialogs

static class FileDialogs.XFileFilter
extends javax.swing.filechooser.FileFilter

Extended file filter

Author:
Bernard Bou

Field Summary
private  java.lang.String theDescription
          Definition
private  java.lang.String[] theExtensions
          Extensions
 
Constructor Summary
FileDialogs.XFileFilter(java.lang.String[] theseExtensions, java.lang.String thisDescription)
          Constructor
 
Method Summary
 boolean accept(java.io.File thisFile)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theExtensions

private final java.lang.String[] theExtensions
Extensions


theDescription

private final java.lang.String theDescription
Definition

Constructor Detail

FileDialogs.XFileFilter

public FileDialogs.XFileFilter(java.lang.String[] theseExtensions,
                               java.lang.String thisDescription)
Constructor

Parameters:
theseExtensions - extension
thisDescription - description
Method Detail

accept

public boolean accept(java.io.File thisFile)
Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter