org.jext
Class ModeFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byorg.jext.ModeFileFilter

public class ModeFileFilter
extends javax.swing.filechooser.FileFilter

ModeFileFilter is a file filter specific to a given syntax colorizing mode.


Constructor Summary
ModeFileFilter(Mode mode)
          Creates a new file filter for given syntax colorizing mode.
 
Method Summary
 boolean accept(java.io.File file)
          If given file is correctly named, it is accepted by the file filter.
protected  void finalize()
          Patch -> Memory management improvements : it may help the garbage collector.
 java.lang.String getDescription()
          Returns a simple description of the file filter.
 java.lang.String getModeName()
          Returns Jext internal mode name of the mode used to build this file filter.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeFileFilter

public ModeFileFilter(Mode mode)
Creates a new file filter for given syntax colorizing mode.

Parameters:
mode - The syntax colorizing mode which gives file filters infos
Method Detail

getModeName

public java.lang.String getModeName()
Returns Jext internal mode name of the mode used to build this file filter.


accept

public boolean accept(java.io.File file)
If given file is correctly named, it is accepted by the file filter.


getDescription

public java.lang.String getDescription()
Returns a simple description of the file filter.


finalize

protected void finalize()
                 throws java.lang.Throwable
Patch -> Memory management improvements : it may help the garbage collector. -> Author : Julien Ponge (julien@izforge.com) -> Date : 23, May 2001

Throws:
java.lang.Throwable


Copyright © 2002 Romain Guy.