Package org.graffiti.managers.pluginmgr
Class PluginFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
org.graffiti.managers.pluginmgr.PluginFileFilter
public class PluginFileFilter extends FileFilter
Represents a file filter for graffiti plugins.
- Version:
- $Revision: 1.5 $
-
Constructor Summary
Constructors Constructor Description PluginFileFilter(String extension)
Constructor for PluginFileFilter.PluginFileFilter(String[] extensions)
Constructs a new plugin file filter from the given array of extensions. -
Method Summary
Modifier and Type Method Description boolean
accept(File f)
String
getDescription()
String
getExtension(File f)
Returns the extension of the selected file.
-
Constructor Details
-
PluginFileFilter
Constructor for PluginFileFilter.- Parameters:
extension
- DOCUMENT ME!
-
PluginFileFilter
Constructs a new plugin file filter from the given array of extensions.- Parameters:
extensions
- the array of extensions (String) to filter.
-
-
Method Details
-
getDescription
- Specified by:
getDescription
in classFileFilter
- See Also:
FileFilter.getDescription()
-
getExtension
Returns the extension of the selected file.- Parameters:
f
- DOCUMENT ME!- Returns:
- the extension of the selected file.
-
accept
- Specified by:
accept
in classFileFilter
- See Also:
FileFilter.accept(File)
-