net.sf.sfac.file
Class FileChooserHelper
java.lang.Object
net.sf.sfac.file.FileChooserHelper
public class FileChooserHelper
- extends Object
Helper for file chooser usage.
This helper will allow to:
- Use settings to recall last used directory.
- Use the FileType(s) constants to specify chooser file types.
- Use LanguageSupport to translate FileChooser title & buttons.
- Author:
- Olivier Berlanger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileChooserHelper
public FileChooserHelper(String helperId,
Settings settngs)
getFileSelectionMode
public int getFileSelectionMode()
setFileSelectionMode
public void setFileSelectionMode(int enabled)
setDialogTitle
public void setDialogTitle(String title)
getDialogTitle
public String getDialogTitle()
setPreSelectedFile
public void setPreSelectedFile(File f)
getPreSelectedFile
public File getPreSelectedFile()
setAcceptedFileTypes
public void setAcceptedFileTypes(boolean useAll,
FileType... types)
selectSingleFile
public File selectSingleFile(Component parent)
selectMultipleFiles
public File[] selectMultipleFiles(Component parent)
Copyright © 2012. All Rights Reserved.