|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.filechooser.FileFilter at.ofai.music.beatroot.FileFilters
public class FileFilters
Implements a set of file filters for the file types used by BeatRoot. An object of this class represents a specific file type, which is identified by the extension of the file name.
Field Summary | |
---|---|
static FileFilters |
csvFileFilter
|
protected java.lang.String |
description
A text description of this file type |
static FileFilters |
matchFileFilter
|
static FileFilters |
midiFileFilter
|
static FileFilters |
sndFileFilter
|
protected java.lang.String |
suffix
The extension corresponding to this file type |
static FileFilters |
textFileFilter
|
static FileFilters |
tmfFileFilter
|
static FileFilters |
waveFileFilter
|
Constructor Summary | |
---|---|
FileFilters(java.lang.String suff,
java.lang.String desc)
Constructor |
Method Summary | |
---|---|
boolean |
accept(java.io.File f)
Checks file names for a given extension. |
java.lang.String |
getDescription()
The description of the file type used in the file dialog's choice box. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String suffix
protected java.lang.String description
public static final FileFilters waveFileFilter
public static final FileFilters sndFileFilter
public static final FileFilters midiFileFilter
public static final FileFilters tmfFileFilter
public static final FileFilters textFileFilter
public static final FileFilters csvFileFilter
public static final FileFilters matchFileFilter
Constructor Detail |
---|
public FileFilters(java.lang.String suff, java.lang.String desc)
suff
- The extension (suffix) of the file namedesc
- A text description of the file typeMethod Detail |
---|
public boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
f
- The File object whose name is to be checked
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |