at.ofai.music.beatroot

Class Chooser

public class Chooser extends JFileChooser

An extension of the Swing file chooser for specific file types.
Field Summary
static longserialVersionUID
Constructor Summary
Chooser()
Constructor for BeatRoot's file chooser
Method Summary
StringgetAudioInName()
Opens a load dialog for loading audio data.
StringgetAudioOutName()
Opens a dialog to get a file name for audio output.
StringgetBeatInName()
Opens a load dialog for loading beat data.
StringgetBeatOutName()
Opens a dialog to get a file name for saving beat information.
StringgetInputName(FileFilters ff)
Opens a load dialog and returns the chosen file name.
StringgetOutputName(FileFilters ff)
Opens a save dialog and returns the chosen file name.

Field Detail

serialVersionUID

static final long serialVersionUID

Constructor Detail

Chooser

public Chooser()
Constructor for BeatRoot's file chooser

Method Detail

getAudioInName

public String getAudioInName()
Opens a load dialog for loading audio data.

Returns: The name of an existing audio file, or null

getAudioOutName

public String getAudioOutName()
Opens a dialog to get a file name for audio output.

Returns: The file name for audio output

getBeatInName

public String getBeatInName()
Opens a load dialog for loading beat data.

Returns: The name of an existing beat file, or null

getBeatOutName

public String getBeatOutName()
Opens a dialog to get a file name for saving beat information.

Returns: The file name for saving beat information

getInputName

public String getInputName(FileFilters ff)
Opens a load dialog and returns the chosen file name.

Parameters: ff A file filter determining the type of file that can be selected

Returns: The chosen file name for loading data, or null if the action is cancelled or the file doesn't exist

getOutputName

public String getOutputName(FileFilters ff)
Opens a save dialog and returns the chosen file name.

Parameters: ff A file filter determining the type of file that can be selected

Returns: The chosen file name for saving data, or null if the action is cancelled