com.c5corp.c5viewUi
Class DemFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.c5corp.c5viewUi.DemFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class DemFileFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FileFilter

This class extends the abstract class javax.swing.filechooser.FileFilter it is used to filter .dem and .DEM extensions in the JFileChooser It also implements the same logic as a java.io.FileFilter.

Since:
1.0
Author:
Brett Stalbaum Copyright 2002-2006 see LICENSE.txt and UCSD_LICENSE.txt
See Also:
FileFilter

Constructor Summary
DemFileFilter()
          Constructor
 
Method Summary
 boolean accept(java.io.File f)
          implements java.io.FileFilter.accept(File f) to specify the file filter
 boolean FileFilteraccept(java.io.File f)
          Overrides javax.swing.filechooser.FileFilter.accept(File f) to specify the file filter for the JFileChooser
 java.lang.String getDescription()
          description of the file types
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemFileFilter

public DemFileFilter()
Constructor

Method Detail

FileFilteraccept

public boolean FileFilteraccept(java.io.File f)
Overrides javax.swing.filechooser.FileFilter.accept(File f) to specify the file filter for the JFileChooser

Parameters:
f - the File
Returns:
true if the file ends in .dem

accept

public boolean accept(java.io.File f)
implements java.io.FileFilter.accept(File f) to specify the file filter

Specified by:
accept in interface java.io.FileFilter
Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
description of the file types

Specified by:
getDescription in class javax.swing.filechooser.FileFilter