ui.utils
Class FileDialogs

java.lang.Object
  extended by ui.utils.FileDialogs

public class FileDialogs
extends java.lang.Object

FileDialogs

This package is used to request filename for saving or loading a system.

Copyright(c) 2005 Université Laval, LSFM research group.

Version:
1.0
Author:
Frédérick Lemay

Field Summary
static int LOAD_FORMULA
          Defines a file selection for loading a formula
static int LOAD_SYSTEM
          Defines a file selection for loading a system
static int SAVE_FORMULA
          Defines a file selection for saving a formula set
static int SAVE_SYSTEM
          Defines a file selection for saving a system
 
Method Summary
static javax.swing.JFileChooser createFileDialog(int type)
          Creates the proper file choosing dialog box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD_FORMULA

public static final int LOAD_FORMULA
Defines a file selection for loading a formula

See Also:
Constant Field Values

LOAD_SYSTEM

public static final int LOAD_SYSTEM
Defines a file selection for loading a system

See Also:
Constant Field Values

SAVE_SYSTEM

public static final int SAVE_SYSTEM
Defines a file selection for saving a system

See Also:
Constant Field Values

SAVE_FORMULA

public static final int SAVE_FORMULA
Defines a file selection for saving a formula set

See Also:
Constant Field Values
Method Detail

createFileDialog

public static javax.swing.JFileChooser createFileDialog(int type)
Creates the proper file choosing dialog box. All the possible boxes are defined here.

Parameters:
type - Type of file chooser
Returns:
a file chooser adapted for the task.