ConForM.CoopnTools.Tool
Class PackageFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--ConForM.CoopnTools.Tool.PackageFileFilter

public class PackageFileFilter
extends javax.swing.filechooser.FileFilter

Filter for package files.


Constructor Summary
PackageFileFilter(CoopnEnv env)
          Creates a package file filter.
 
Method Summary
 boolean accept(java.io.File f)
          Return true if this file should be shown in the directory pane, false if it shouldn't.
 java.lang.String getDescription()
          Returns the human readable description of this filter.
 java.lang.String getExtension(java.io.File f)
          Return the extension portion of the file's name .
 java.lang.String getFileName(java.io.File f)
          Get the File name of a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageFileFilter

public PackageFileFilter(CoopnEnv env)
Creates a package file filter.
Method Detail

accept

public boolean accept(java.io.File f)
Return true if this file should be shown in the directory pane, false if it shouldn't. Files that begin with "." are ignored.
Overrides:
accept in class javax.swing.filechooser.FileFilter
See Also:
getExtension(java.io.File), FileFilter#accepts

getExtension

public java.lang.String getExtension(java.io.File f)
Return the extension portion of the file's name .
See Also:
getExtension(java.io.File), FileFilter.accept(java.io.File)

getFileName

public java.lang.String getFileName(java.io.File f)
Get the File name of a file. The extension is removed, if it corresponds to the current extension.

getDescription

public java.lang.String getDescription()
Returns the human readable description of this filter. For example: "Package Files (*.package)"
Overrides:
getDescription in class javax.swing.filechooser.FileFilter