adams.gui.chooser
Class EmailFileChooser.EmailFileExtensionFilter

java.lang.Object
  extended by com.googlecode.vfsjfilechooser2.filechooser.AbstractVFSFileFilter
      extended by adams.gui.core.ExtensionFileFilter
          extended by adams.gui.chooser.EmailFileChooser.EmailFileExtensionFilter
All Implemented Interfaces:
Serializable, Comparable<ExtensionFileFilter>
Enclosing class:
EmailFileChooser

public static class EmailFileChooser.EmailFileExtensionFilter
extends ExtensionFileFilter

A custom filter class that stores the associated class along the description and extensions.

Version:
$Revision: 7123 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
protected  String m_Classname
          the classname.
 
Fields inherited from class adams.gui.core.ExtensionFileFilter
EXT_ALL_FILES, m_CaseSensitive, m_Description, m_Extensions
 
Constructor Summary
EmailFileChooser.EmailFileExtensionFilter(String classname)
          Constructs a filter that matches all files.
EmailFileChooser.EmailFileExtensionFilter(String classname, String description, String extension)
          Constructs a filter that matches files with the given extension, not case-sensitive.
EmailFileChooser.EmailFileExtensionFilter(String classname, String description, String[] extensions)
          Constructs a filter that matches files with the given extension, not case-sensitive.
EmailFileChooser.EmailFileExtensionFilter(String classname, String description, String[] extensions, boolean caseSensitive)
          Constructs a filter that matches files with the given extension, not case-sensitive.
EmailFileChooser.EmailFileExtensionFilter(String classname, String description, String extension, boolean caseSensitive)
          Constructs a filter that matches files with the given extension, not case-sensitive.
 
Method Summary
 int compareTo(ExtensionFileFilter o)
          Compares this image format with the specified filter for order.
 String getClassname()
          Returns the associated classname.
 
Methods inherited from class adams.gui.core.ExtensionFileFilter
accept, equals, getCsvFileFilter, getDescription, getExtensions, getFlowFileFilter, getLogFileFilter, getModelFileFilter, getPdfFileFilter, getPropertiesFileFilter, getSerialiedModelFileFilter, getTextFileFilter, getZipFileFilter, isCaseSensitive, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Classname

protected String m_Classname
the classname.

Constructor Detail

EmailFileChooser.EmailFileExtensionFilter

public EmailFileChooser.EmailFileExtensionFilter(String classname)
Constructs a filter that matches all files.

Parameters:
classname - the classname this filter is for

EmailFileChooser.EmailFileExtensionFilter

public EmailFileChooser.EmailFileExtensionFilter(String classname,
                                                 String description,
                                                 String extension)
Constructs a filter that matches files with the given extension, not case-sensitive.

Parameters:
classname - the classname this filter is for
description - the display string
extension - the extensions of the files (no dot!)

EmailFileChooser.EmailFileExtensionFilter

public EmailFileChooser.EmailFileExtensionFilter(String classname,
                                                 String description,
                                                 String[] extensions)
Constructs a filter that matches files with the given extension, not case-sensitive.

Parameters:
classname - the classname this filter is for
description - the display string
extensions - the extensions of the files (no dot!)

EmailFileChooser.EmailFileExtensionFilter

public EmailFileChooser.EmailFileExtensionFilter(String classname,
                                                 String description,
                                                 String extension,
                                                 boolean caseSensitive)
Constructs a filter that matches files with the given extension, not case-sensitive.

Parameters:
classname - the classname this filter is for
description - the display string
extension - the extensions of the files (no dot!)
caseSensitive - if true then the filter is case-sensitive

EmailFileChooser.EmailFileExtensionFilter

public EmailFileChooser.EmailFileExtensionFilter(String classname,
                                                 String description,
                                                 String[] extensions,
                                                 boolean caseSensitive)
Constructs a filter that matches files with the given extension, not case-sensitive.

Parameters:
classname - the classname this filter is for
description - the display string
extensions - the extensions of the files (no dot!)
caseSensitive - if true then the filter is case-sensitive
Method Detail

getClassname

public String getClassname()
Returns the associated classname.

Returns:
the classname

compareTo

public int compareTo(ExtensionFileFilter o)
Compares this image format with the specified filter for order. Returns a negative integer, zero, or a positive integer as this filter is less than, equal to, or greater than the specified filter.

Specified by:
compareTo in interface Comparable<ExtensionFileFilter>
Overrides:
compareTo in class ExtensionFileFilter
Parameters:
o - the filter to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.