JSampler
v0.8a

org.jsampler.view
Class LscpFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.jsampler.view.LscpFileFilter

public class LscpFileFilter
extends javax.swing.filechooser.FileFilter

A file filter for LSCP script files.


Constructor Summary
LscpFileFilter()
          Creates a new instance of LscpFileFilter
 
Method Summary
 boolean accept(java.io.File f)
          Returns true if the specified file is a LSCP script.
 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

LscpFileFilter

public LscpFileFilter()
Creates a new instance of LscpFileFilter

Method Detail

accept

public boolean accept(java.io.File f)
Returns true if the specified file is a LSCP script. The file is recognized by its extension.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Returns:
true if the specified file is a LSCP script; false otherwise.

getDescription

public java.lang.String getDescription()
The description of this filter.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
The description of this filter: LSCP Script Files (*.lscp).

JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.