Class NetworkFileChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

@Deprecated public class NetworkFileChooser extends JPanel
Deprecated.
The NetworkFileChooser class allows the user to choose a file from a network server. Functionality is similar to a JFileChooser, with the additional ability to select from a list of abbreviated server names with location paths. The chooser is initialized using:
  • A list of ServerTableModel.Entry objects for the names and locations of servers to show initially. The user can edit the list of servers, so this list should be retrieved again when the chooser is done being used.
  • A DirectoryLister object that knows how to connect to and list the contents of the server locations in the list. The lister is used to drive a FileChooser object.
Once a connection is established, the user may choose a file in the directory listing. When a new file is chosen, this class fires a property change with the full file location and name as the value.
Since:
3.2.0
Author:
Peter Hollemans
See Also:
  • Field Details

  • Constructor Details

    • NetworkFileChooser

      public NetworkFileChooser(List serverList, DirectoryLister lister)
      Deprecated.
      Creates a new chooser.
      Parameters:
      serverList - the initial list of ServerTableModel.Entry objects to display.
      lister - the directory lister to use for directory content listing.
  • Method Details

    • runTask

      public void runTask(FileChooser.Task task)
      Deprecated.
      Runs a task in the file chooser.
    • clearSelection

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

      public List getServerList()
      Deprecated.
      Gets the current list of server entries.
    • main

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