net.chaosserver.jtunes.swingui.file
Class FileExporter

java.lang.Object
  |
  +--net.chaosserver.jtunes.swingui.file.FileExporter

public class FileExporter
extends Object

Swing UI to select a directory to export a playlist to.


Field Summary
protected  Component parentComponent
          Holds the parent component used to make this dialog modal.
 
Constructor Summary
FileExporter(Component parentComponent)
          Creates a new FileExporter with the given parent component.
 
Method Summary
 File getExportDirectory()
          Gets the directory to export the playlist to.
protected  File getLastExportDirectory()
          Gets the last directory that a user exported a playlist to.
protected  void setLastExportDirectory(File lastExportDirectory)
          Sets the last directory that a user exported a playlist to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentComponent

protected Component parentComponent
Holds the parent component used to make this dialog modal.

Constructor Detail

FileExporter

public FileExporter(Component parentComponent)
Creates a new FileExporter with the given parent component.

Parameters:
parentComponent - the component to make this modal against.
Method Detail

getExportDirectory

public File getExportDirectory()
Gets the directory to export the playlist to.

Returns:
the directory to export the playlist to or null if no directory is selected

setLastExportDirectory

protected void setLastExportDirectory(File lastExportDirectory)
Sets the last directory that a user exported a playlist to.

Parameters:
lastExportDirectory - the last directory the user exported a playlist to.

getLastExportDirectory

protected File getLastExportDirectory()
Gets the last directory that a user exported a playlist to.

Returns:
the last directory a user exported a playlist in or null if there is no such directory or the directory no longer exists.


Copyright ?? 20030801