HiRISE

HiRISE.HiReport.util
Class ExtFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by HiRISE.HiReport.util.ExtFileFilter
All Implemented Interfaces:
FileFilter

public class ExtFileFilter
extends FileFilter
implements FileFilter

A file filter for extensions


Field Summary
static String ID
          CVS ID
static FileFilter imgFilter
          Filter to accept image files based on extension
static FileFilter pngFilter
          Filter to accept PNG files based on extension
static FileFilter txtFilter
          Filter to accept text files based on extension
static FileFilter xlsFilter
          Filter to accept Excel files based on extension
 
Constructor Summary
ExtFileFilter(String... exts)
          Create a filter for one or more extensions
 
Method Summary
 boolean accept(File f)
          Decide whether or not to accept a file
 String getDescription()
          Get a description of what this filter accepts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

pngFilter

public static final FileFilter pngFilter
Filter to accept PNG files based on extension


xlsFilter

public static final FileFilter xlsFilter
Filter to accept Excel files based on extension


imgFilter

public static final FileFilter imgFilter
Filter to accept image files based on extension


txtFilter

public static final FileFilter txtFilter
Filter to accept text files based on extension

Constructor Detail

ExtFileFilter

public ExtFileFilter(String... exts)
Create a filter for one or more extensions

Parameters:
exts - The extensions
Method Detail

accept

public boolean accept(File f)
Decide whether or not to accept a file

Specified by:
accept in interface FileFilter
Specified by:
accept in class FileFilter
Parameters:
f - The file

getDescription

public String getDescription()
Get a description of what this filter accepts

Specified by:
getDescription in class FileFilter
Returns:
description

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona