net.sourceforge.steelme
Class ThemeFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.sourceforge.steelme.ThemeFileFilter
All Implemented Interfaces:
FileFilter

public class ThemeFileFilter
extends FileFilter
implements FileFilter

A FileFilter that accepts only Theme files.


Constructor Summary
ThemeFileFilter()
           
 
Method Summary
 boolean accept(File f)
          Returns true if f is a Theme file.
protected  boolean checkName(String name)
          Determines if name represents a Theme file/entry name.
 String getDescription()
          Returns description of this file filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeFileFilter

public ThemeFileFilter()
Method Detail

accept

public boolean accept(File f)
Returns true if f is a Theme file.

Specified by:
accept in interface FileFilter
Specified by:
accept in class FileFilter
Parameters:
f - a File value
Returns:
a boolean value

checkName

protected boolean checkName(String name)
Determines if name represents a Theme file/entry name.

Parameters:
name - a String value
Returns:
a boolean value

getDescription

public String getDescription()
Returns description of this file filter.

Specified by:
getDescription in class FileFilter
Returns:
a String value