net.chaosserver.jtunes.swingui.file
Class FileOpener

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

public class FileOpener
extends Object

Swing interface for retrieving a playlist to open.


Field Summary
protected  Component parentComponent
          Holds the parent component used to make this dialog modal.
 
Constructor Summary
FileOpener(Component parentComponent)
          Creates a new FileOpener with the given parent component.
 
Method Summary
protected  File getLastOpenDirectory()
          Gets the last directory that a user opened a playlist in.
 File getPlayListFile()
          Displays the file chooser and return the file selected.
protected  void setLastOpenDirectory(File lastOpenDirectory)
          Sets the last directory that a user opened a playlist in.
 
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

FileOpener

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

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

getPlayListFile

public File getPlayListFile()
Displays the file chooser and return the file selected.

Returns:
the file selected by the chooser or null if the user did no select a file.

setLastOpenDirectory

protected void setLastOpenDirectory(File lastOpenDirectory)
Sets the last directory that a user opened a playlist in.

Parameters:
lastOpenDirectory - the last directory the user opened a playlist in.

getLastOpenDirectory

protected File getLastOpenDirectory()
Gets the last directory that a user opened a playlist in.

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


Copyright ?? 20030801