alma::acs::logging::io::FileChooserFilter Class Reference

Inheritance diagram for alma::acs::logging::io::FileChooserFilter:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::io::FileChooserFilter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FileChooserFilter (String[] extensions)
boolean accept (File f)
String getDescription ()

Private Attributes

String[] extensions

Detailed Description

The filter of files shown by the chooser.

The filtering is based on the extension of the files (case insensitive)

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::logging::io::FileChooserFilter::FileChooserFilter ( String[]  extensions  )  [inline]

Constructor

Parameters:
extensions The extension used for filtering

Member Function Documentation

boolean alma::acs::logging::io::FileChooserFilter::accept ( File  f  )  [inline]

Check if the file is readable and if its extensions matches one of the available extensions.

See also:
javax.swing.filechooser.FileFilter::accept(java.io.File)

References extensions.

String alma::acs::logging::io::FileChooserFilter::getDescription (  )  [inline]
See also:
javax.swing.filechooser.FileFilter::getDescription()

References extensions.


Member Data Documentation

The extensions used for filtering like for example ".gz" or ".xml"

Referenced by accept(), and getDescription().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2