All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.jhv.RemoteFileDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----ncsa.hdf.jhv.RemoteFileDialog

public class RemoteFileDialog
extends Dialog
The RemoteFileDialog class displays a dialog window from which the user can select a file from remote machine. Since it is a modal dialog, when the application calls its show method to display the dialog, it blocks the rest of the application until the user has chosen a file.

Version:
1.1.3 October 15 1997
Author:
Peter X. Cao

Constructor Index

 o RemoteFileDialog(Frame, String, String, int, Image, Image, Image)

Method Index

 o addTreeNode(HDFTree, FileTreeNode)
add a node and all the subnodes to the tree
 o getFile()
Gets the selected file of this file dialog.
 o getFiles(FileTreeNode, String)
 o getParentFrame()
return the parent frame of the dialog.
 o init(String)
initialize the tree
 o printTree(FileTreeNode, String)
printout the tree for degub purpose
 o setFile(String)
Sets the selected file

Constructors

 o RemoteFileDialog
 public RemoteFileDialog(Frame parent,
                         String title,
                         String host,
                         int port,
                         Image expandedImg,
                         Image collapsedImg,
                         Image fileImg)

Methods

 o init
 public void init(String path)
initialize the tree

 o printTree
 public void printTree(FileTreeNode node,
                       String indent)
printout the tree for degub purpose

 o getFile
 public String getFile()
Gets the selected file of this file dialog.

 o getParentFrame
 public Frame getParentFrame()
return the parent frame of the dialog.

 o setFile
 public synchronized void setFile(String file)
Sets the selected file

Parameters:
file - the file being set.
 o addTreeNode
 public void addTreeNode(HDFTree tree,
                         FileTreeNode node)
add a node and all the subnodes to the tree

Parameters:
tree - the HDFTree
node - The FileTreeNode
 o getFiles
 public void getFiles(FileTreeNode parent,
                      String path)

All Packages  Class Hierarchy  This Package  Previous  Next  Index