com.sshtools.ui.swing
Class SwingFileSelector

java.lang.Object
  extended by com.sshtools.ui.swing.SwingFileSelector
All Implemented Interfaces:
com.sshtools.ui.FileSelector

public class SwingFileSelector
extends java.lang.Object
implements com.sshtools.ui.FileSelector

Author:
Brett Smith

Constructor Summary
SwingFileSelector()
           
 
Method Summary
 void addFileFilter(com.sshtools.ui.FileFilter filter)
           
 java.io.File getSelectedFile()
           
 java.io.File[] getSelectedFiles()
           
 java.io.File getWorkingDirectory()
           
 void init(int type, java.io.File cwd, boolean showButtons, boolean showHiddenFilesSwitch, boolean showButtonImages, boolean showButtonText)
           
 void refresh()
           
 void setAllowMultipleSelection(boolean allowMultipleSelection)
           
 void setSelectedFileFilter(com.sshtools.ui.FileFilter filter)
           
 void setUseAcceptAllFilter(boolean useAcceptAllFilter)
           
 void setWorkingDirectory(java.io.File cwd)
           
 com.sshtools.ui.Option showDialog(java.awt.Component parent, java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingFileSelector

public SwingFileSelector()
Method Detail

init

public void init(int type,
                 java.io.File cwd,
                 boolean showButtons,
                 boolean showHiddenFilesSwitch,
                 boolean showButtonImages,
                 boolean showButtonText)
Specified by:
init in interface com.sshtools.ui.FileSelector

setUseAcceptAllFilter

public void setUseAcceptAllFilter(boolean useAcceptAllFilter)
Specified by:
setUseAcceptAllFilter in interface com.sshtools.ui.FileSelector

addFileFilter

public void addFileFilter(com.sshtools.ui.FileFilter filter)
Specified by:
addFileFilter in interface com.sshtools.ui.FileSelector

getSelectedFiles

public java.io.File[] getSelectedFiles()
Specified by:
getSelectedFiles in interface com.sshtools.ui.FileSelector

getSelectedFile

public java.io.File getSelectedFile()
Specified by:
getSelectedFile in interface com.sshtools.ui.FileSelector

refresh

public void refresh()
Specified by:
refresh in interface com.sshtools.ui.FileSelector

setAllowMultipleSelection

public void setAllowMultipleSelection(boolean allowMultipleSelection)
Specified by:
setAllowMultipleSelection in interface com.sshtools.ui.FileSelector

showDialog

public com.sshtools.ui.Option showDialog(java.awt.Component parent,
                                         java.lang.String title)
Specified by:
showDialog in interface com.sshtools.ui.FileSelector

getWorkingDirectory

public java.io.File getWorkingDirectory()
Specified by:
getWorkingDirectory in interface com.sshtools.ui.FileSelector

setSelectedFileFilter

public void setSelectedFileFilter(com.sshtools.ui.FileFilter filter)
Specified by:
setSelectedFileFilter in interface com.sshtools.ui.FileSelector

setWorkingDirectory

public void setWorkingDirectory(java.io.File cwd)
Specified by:
setWorkingDirectory in interface com.sshtools.ui.FileSelector


Copyright © 2003-2009 SSHTOOLS LTD. All Rights Reserved.