easik.ui.menu
Class TexFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by easik.ui.menu.TexFileFilter

public class TexFileFilter
extends javax.swing.filechooser.FileFilter

Filter for file browsing dialogs to ensure that only .xml files are accepted.

Since:
2006-07-10 Vera Ranieri
Version:
2006-07-10 Vera Ranieri
Author:
Vera Ranieri 2006

Constructor Summary
TexFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Overloaded method, checks the file to see if it ends with .tex and returns true.
 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
 

Constructor Detail

TexFileFilter

public TexFileFilter()
Method Detail

accept

public boolean accept(java.io.File file)
Overloaded method, checks the file to see if it ends with .tex and returns true. false otherwise.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - The file being considered
Returns:
True if the file is of an acceptable type

getDescription

public java.lang.String getDescription()
The description of this filter. *.tex will do

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
The description of this filter