org.emboss.jemboss.gui.sequenceChooser
Class SequenceFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byorg.emboss.jemboss.gui.sequenceChooser.SequenceFilter

public class SequenceFilter
extends javax.swing.filechooser.FileFilter

Sequence format file name suffix filter


Field Summary
static java.lang.String embl
           
static java.lang.String fasta
           
static java.lang.String gcg
           
static java.lang.String msf
           
static java.lang.String swiss
           
 
Constructor Summary
SequenceFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Accept all directories and all sequence files (*.fasta, *.msf, *.gcg, *.embl, *.swiss)
 java.lang.String getDescription()
           
static java.lang.String getExtension(java.io.File f)
          Get the extension of a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fasta

public static final java.lang.String fasta
See Also:
Constant Field Values

msf

public static final java.lang.String msf
See Also:
Constant Field Values

gcg

public static final java.lang.String gcg
See Also:
Constant Field Values

embl

public static final java.lang.String embl
See Also:
Constant Field Values

swiss

public static final java.lang.String swiss
See Also:
Constant Field Values
Constructor Detail

SequenceFilter

public SequenceFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Accept all directories and all sequence files (*.fasta, *.msf, *.gcg, *.embl, *.swiss)


getDescription

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

getExtension

public static java.lang.String getExtension(java.io.File f)
Get the extension of a file

Parameters:
f - file
Returns:
extension of the file