Package weka.gui
Class ExtensionFileFilterWithClass
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- weka.gui.ExtensionFileFilter
-
- weka.gui.ExtensionFileFilterWithClass
-
- All Implemented Interfaces:
FilenameFilter,Serializable
public class ExtensionFileFilterWithClass extends ExtensionFileFilter
File filter that stores an associated class alongside name and extension(s).- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExtensionFileFilterWithClass(String[] extensions, String description, Class filterClass)Creates an ExtensionFileFilterWithClass that accepts files that have any of the extensions contained in the supplied array.ExtensionFileFilterWithClass(String extension, String description, Class filterClass)Creates the ExtensionFileFilterWithClass
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassgetFilterClass()Returns the underlying class.ObjectnewInstance()Creates a new instance of the underlying class.-
Methods inherited from class weka.gui.ExtensionFileFilter
accept, accept, getDescription, getExtensions
-
-
-
-
Constructor Detail
-
ExtensionFileFilterWithClass
public ExtensionFileFilterWithClass(String extension, String description, Class filterClass)
Creates the ExtensionFileFilterWithClass- Parameters:
extension- the extension of accepted files.description- a text description of accepted files.filterClass- the underlying class
-
ExtensionFileFilterWithClass
public ExtensionFileFilterWithClass(String[] extensions, String description, Class filterClass)
Creates an ExtensionFileFilterWithClass that accepts files that have any of the extensions contained in the supplied array.- Parameters:
extensions- an array of acceptable file extensions (as Strings).description- a text description of accepted files.filterClass- the underlying class
-
-