cyvis.gui
Class FileChooser

java.lang.Object
  extended by cyvis.gui.FileChooser

public class FileChooser
extends Object

The FileChooser class takes care of all the file dialog needs in cyvis.


Constructor Summary
FileChooser()
           
 
Method Summary
static File selectDirectory(JDialog dialog)
          Enables users to select a directory.
static ArrayList<File> selectFiles(JDialog dialog)
          Enables to select class and jar files & returns an arraylist of the files selected.
static File selectProjectFile(JFrame frame)
          Enables users to select the project file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChooser

public FileChooser()
Method Detail

selectFiles

public static ArrayList<File> selectFiles(JDialog dialog)
Enables to select class and jar files & returns an arraylist of the files selected.

Parameters:
dialog - the parent dialog
Returns:
ArrayList a list of files selected.

selectDirectory

public static File selectDirectory(JDialog dialog)
Enables users to select a directory.

Parameters:
dialog - the parent dialog
Returns:
File the selected directory

selectProjectFile

public static File selectProjectFile(JFrame frame)
Enables users to select the project file.

Parameters:
frame - the parent frame.
Returns:
File the project file (*.cys) selected.