simtools.logging.ui
Class LoggingFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by simtools.logging.ui.LoggingFileFilter

public class LoggingFileFilter
extends javax.swing.filechooser.FileFilter

Class LoggingFileFilter This class defines the file filter designed for the logging viewer. It will accepts The files extension defines in the static field LOGGING_FILE_EXTENSIONS.


Constructor Summary
LoggingFileFilter(java.lang.String[] acceptedExtensions, java.lang.String description)
          Contructor LoggingFileFilter
Summary:
The constructor of the class LoggingFileFilter.
 
Method Summary
 boolean accept(java.io.File pathname)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingFileFilter

public LoggingFileFilter(java.lang.String[] acceptedExtensions,
                         java.lang.String description)
Contructor LoggingFileFilter
Summary:
The constructor of the class LoggingFileFilter.

Parameters:
acceptedExtensions - The extension that will be accepted by the file filter.
description - The description to be returned by the fileFilter.
Method Detail

accept

public boolean accept(java.io.File pathname)
Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter