net.sf.sfac.file
Class FileChooserHelper

java.lang.Object
  extended by net.sf.sfac.file.FileChooserHelper

public class FileChooserHelper
extends Object

Helper for file chooser usage.
This helper will allow to:

Author:
Olivier Berlanger

Constructor Summary
FileChooserHelper(String helperId, Settings settngs)
           
 
Method Summary
 String getDialogTitle()
           
 int getFileSelectionMode()
           
 File getPreSelectedFile()
           
 File[] selectMultipleFiles(Component parent)
           
 File selectSingleFile(Component parent)
           
 void setAcceptedFileTypes(boolean useAll, FileType... types)
           
 void setDialogTitle(String title)
           
 void setFileSelectionMode(int enabled)
           
 void setPreSelectedFile(File f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChooserHelper

public FileChooserHelper(String helperId,
                         Settings settngs)
Method Detail

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.