org.pdfsam.guiclient.commons.components.sharedchooser
Class SharedJFileChooser

java.lang.Object
  extended by org.pdfsam.guiclient.commons.components.sharedchooser.SharedJFileChooser

public class SharedJFileChooser
extends java.lang.Object

Shared JFileChooser instance used all over the application

Author:
Andrea Vacondio

Method Summary
static javax.swing.JFileChooser getInstance(SharedJFileChooserType type, int mode)
           
static javax.swing.JFileChooser getInstance(SharedJFileChooserType type, int mode, java.lang.String currentDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static javax.swing.JFileChooser getInstance(SharedJFileChooserType type,
                                                   int mode,
                                                   java.lang.String currentDirectory)
Parameters:
type - type of file chooser
mode - mode of the file chooser
currentDirectory - directory where the file chooser is pointed
Returns:
a shared instance of JFileChooser given the input parameters

getInstance

public static javax.swing.JFileChooser getInstance(SharedJFileChooserType type,
                                                   int mode)
Parameters:
type - type of file chooser
mode - mode of the file chooser
Returns:
a shared instance of JFileChooser given the input parameters