cct.tools.filebrowser
Class LocalFileBrowser

java.lang.Object
  extended by cct.tools.filebrowser.LocalFileBrowser
All Implemented Interfaces:
FileBrowserInterface

public class LocalFileBrowser
extends java.lang.Object
implements FileBrowserInterface

Title:

Description:

Copyright: Copyright (c) 2006

Company: ANU


Field Summary
(package private)  javax.swing.JTable table
           
(package private)  FileBrowserGUIInterface topGUI
           
 
Constructor Summary
LocalFileBrowser()
           
 
Method Summary
 void cd(java.lang.String dir)
           
 void connect(java.lang.String hostname)
           
 void connect(java.lang.String hostname, java.lang.String username, char[] password, int port)
           
 void disconnect()
           
 void downloadSelected()
           
 void get(java.lang.String remote, java.lang.String local)
           
 void get(java.lang.String remote, java.lang.String local, com.sshtools.j2ssh.FileTransferProgress progress)
           
 java.awt.Component getComponent()
           
 int getFileCount()
           
 java.lang.String[] getFileNames()
           
 java.lang.String[] getSelectedFiles()
           
 java.lang.String[] getSelectedFolders()
           
 boolean isAuthenticated()
           
 void listUsingFilePattern(java.lang.String pattern)
           
static void main(java.lang.String[] args)
           
 void mkdir()
           
 void mkdir(java.lang.String dir)
           
 java.lang.String pwd()
           
 void refresh()
           
 void removeSelectedPaths()
           
 void rm(java.lang.String path)
           
 void setFileFilter(FileFilterImpl filter)
           
 void setSelectionInfoInterface(SelectionInfoInterface selection_info)
           
 void setSelectionMode(int mode)
           
 void setTopGUI(FileBrowserGUIInterface guiInterface)
           
 void upDirectory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

javax.swing.JTable table

topGUI

FileBrowserGUIInterface topGUI
Constructor Detail

LocalFileBrowser

public LocalFileBrowser()
Method Detail

getFileNames

public java.lang.String[] getFileNames()
Specified by:
getFileNames in interface FileBrowserInterface

getFileCount

public int getFileCount()
Specified by:
getFileCount in interface FileBrowserInterface

listUsingFilePattern

public void listUsingFilePattern(java.lang.String pattern)
                          throws java.lang.Exception
Specified by:
listUsingFilePattern in interface FileBrowserInterface
Throws:
java.lang.Exception

getComponent

public java.awt.Component getComponent()
Specified by:
getComponent in interface FileBrowserInterface

setSelectionInfoInterface

public void setSelectionInfoInterface(SelectionInfoInterface selection_info)
Specified by:
setSelectionInfoInterface in interface FileBrowserInterface

get

public void get(java.lang.String remote,
                java.lang.String local)
         throws java.lang.Exception
Specified by:
get in interface FileBrowserInterface
Throws:
java.lang.Exception

get

public void get(java.lang.String remote,
                java.lang.String local,
                com.sshtools.j2ssh.FileTransferProgress progress)
         throws java.lang.Exception
Specified by:
get in interface FileBrowserInterface
Throws:
java.lang.Exception

setFileFilter

public void setFileFilter(FileFilterImpl filter)
Specified by:
setFileFilter in interface FileBrowserInterface

disconnect

public void disconnect()
Specified by:
disconnect in interface FileBrowserInterface

getSelectedFiles

public java.lang.String[] getSelectedFiles()
Specified by:
getSelectedFiles in interface FileBrowserInterface

downloadSelected

public void downloadSelected()
Specified by:
downloadSelected in interface FileBrowserInterface

pwd

public java.lang.String pwd()
Specified by:
pwd in interface FileBrowserInterface

getSelectedFolders

public java.lang.String[] getSelectedFolders()
Specified by:
getSelectedFolders in interface FileBrowserInterface

setSelectionMode

public void setSelectionMode(int mode)
Specified by:
setSelectionMode in interface FileBrowserInterface

setTopGUI

public void setTopGUI(FileBrowserGUIInterface guiInterface)
Specified by:
setTopGUI in interface FileBrowserInterface

connect

public void connect(java.lang.String hostname)
             throws java.lang.Exception
Specified by:
connect in interface FileBrowserInterface
Throws:
java.lang.Exception

connect

public void connect(java.lang.String hostname,
                    java.lang.String username,
                    char[] password,
                    int port)
             throws java.lang.Exception
Specified by:
connect in interface FileBrowserInterface
Throws:
java.lang.Exception

isAuthenticated

public boolean isAuthenticated()
Specified by:
isAuthenticated in interface FileBrowserInterface

mkdir

public void mkdir()
Specified by:
mkdir in interface FileBrowserInterface

mkdir

public void mkdir(java.lang.String dir)
Specified by:
mkdir in interface FileBrowserInterface

cd

public void cd(java.lang.String dir)
Specified by:
cd in interface FileBrowserInterface

refresh

public void refresh()
Specified by:
refresh in interface FileBrowserInterface

removeSelectedPaths

public void removeSelectedPaths()
Specified by:
removeSelectedPaths in interface FileBrowserInterface

rm

public void rm(java.lang.String path)
Specified by:
rm in interface FileBrowserInterface

upDirectory

public void upDirectory()
Specified by:
upDirectory in interface FileBrowserInterface

main

public static void main(java.lang.String[] args)