com.japisoft.framework.ui.toolkit
Class FileManager

java.lang.Object
  extended bycom.japisoft.framework.ui.toolkit.FileManager

public class FileManager
extends java.lang.Object

Toolkit for selecting easily a file

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Field Summary
static java.lang.String PREFERENCE_KEY_LASTPATH
          Preference key for storing/restoring the last path
 
Constructor Summary
FileManager()
           
 
Method Summary
static java.io.File getSelectedFile(boolean openMode, java.lang.String[] fileExt, java.lang.String[] description)
          Open a file dialog
static java.io.File getSelectedFile(boolean openMode, java.lang.String fileExt, java.lang.String description)
          Open a file dialog
static void setPreferenceForLastFilePath(boolean value)
          Mode for using a preference for saving/restoring the last file path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFERENCE_KEY_LASTPATH

public static final java.lang.String PREFERENCE_KEY_LASTPATH
Preference key for storing/restoring the last path

See Also:
Constant Field Values
Constructor Detail

FileManager

public FileManager()
Method Detail

setPreferenceForLastFilePath

public static void setPreferenceForLastFilePath(boolean value)
Mode for using a preference for saving/restoring the last file path. By default false


getSelectedFile

public static java.io.File getSelectedFile(boolean openMode,
                                           java.lang.String[] fileExt,
                                           java.lang.String[] description)
Open a file dialog


getSelectedFile

public static java.io.File getSelectedFile(boolean openMode,
                                           java.lang.String fileExt,
                                           java.lang.String description)
Open a file dialog