nu.zoom.swing.desktop.component.filechooser.impl
Class FileChooserFactoryImpl

java.lang.Object
  extended by nu.zoom.swing.desktop.component.filechooser.impl.FileChooserFactoryImpl
All Implemented Interfaces:
FileChooserFactory

public class FileChooserFactoryImpl
extends Object
implements FileChooserFactory

Author:
Johan Maasing

Constructor Summary
FileChooserFactoryImpl(Workbench workbench, Preferences preferences)
           
 
Method Summary
 FileChooser getFileChooser(String preferencesKey)
          Same as calling getFileChooser(preferencesKey, null, null)
 FileChooser getFileChooser(String preferencesKey, String matchDescription, List<String> matchPatterns)
          Get a file chooser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChooserFactoryImpl

public FileChooserFactoryImpl(Workbench workbench,
                              Preferences preferences)
Method Detail

getFileChooser

public FileChooser getFileChooser(String preferencesKey,
                                  String matchDescription,
                                  List<String> matchPatterns)
Description copied from interface: FileChooserFactory
Get a file chooser.

Specified by:
getFileChooser in interface FileChooserFactory
Parameters:
preferencesKey - The key used by the file chooser to store the recently used directory and files. May not be null or empty, may not contain /, max 80 characters.
matchDescription - A displayble description of the filename patterns - e.g. 'Image files'. May be null.
matchPatterns - A list of regular expressions that is used to filter the selectable files. May be null or empty, which means that no files should be excluded.
Returns:
A file chooser with the specified characteristics.

getFileChooser

public FileChooser getFileChooser(String preferencesKey)
Description copied from interface: FileChooserFactory
Same as calling getFileChooser(preferencesKey, null, null)

Specified by:
getFileChooser in interface FileChooserFactory
Returns:


Copyright © 2011. All Rights Reserved.