Class FileChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

@Deprecated public class FileChooser extends JPanel
Deprecated.
The FileChooser class is a simplified version of the Swing JFileChooser that allows the user to select a file on any directory listing service supported by a DirectoryLister object. The chooser signals changes in the current directory and file choice via property changes. The file property may have a null value if the user changes directories or deselects the file.
Since:
3.2.0
Author:
Peter Hollemans
See Also:
  • Field Details

  • Constructor Details

    • FileChooser

      public FileChooser(DirectoryLister lister)
      Deprecated.
      Creates a new file chooser with no location.
  • Method Details

    • runTask

      public void runTask(FileChooser.Task task)
      Deprecated.
      Runs the specified file chooser task in a separate thread. See the FileChooser.Task class for details. Only one task may be running at a time. If a new task is started while an existing one is running, the existing task's followup method is never called.
    • setDirectory

      public void setDirectory(String name)
      Deprecated.
      Sets the directory name of the file chooser and updates the entry list.
      Parameters:
      name - the new directory name.
    • getDirectory

      public String getDirectory()
      Deprecated.
      Gets the current directory or null if no directory is set.
    • getFile

      public String getFile()
      Deprecated.
      Gets the currently selected file or null if none is selected.
    • clearSelection

      public void clearSelection()
      Deprecated.
      Clears the current file table selection.
    • main

      public static void main(String[] argv) throws Exception
      Deprecated.
      Tests this class.
      Parameters:
      argv - the array of command line parameters.
      Throws:
      Exception