org.objectweb.fractal.explorer.lib
Class JFileChooserSingleton

java.lang.Object
  extended by org.objectweb.fractal.explorer.lib.JFileChooserSingleton

public class JFileChooserSingleton
extends Object

This class gives you a JFileChooser.

Version:
0.1
Author:
Jerome Moroy

Field Summary
protected static FileFilter fractalFileFilter_
          The FractalFileFilter instance.
protected static JFileChooser instance_
          The JFileChooser instance.
protected static FileFilter xmlFileFilter_
          The XMLFileFilter instance.
 
Constructor Summary
JFileChooserSingleton()
           
 
Method Summary
static JFileChooser getInstance(int fileFilterType)
          Gives a JFileChooser with a specific FileFilter.
protected static void init()
          Initialize the instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance_

protected static JFileChooser instance_
The JFileChooser instance.


fractalFileFilter_

protected static FileFilter fractalFileFilter_
The FractalFileFilter instance.


xmlFileFilter_

protected static FileFilter xmlFileFilter_
The XMLFileFilter instance.

Constructor Detail

JFileChooserSingleton

public JFileChooserSingleton()
Method Detail

init

protected static void init()
Initialize the instance.


getInstance

public static JFileChooser getInstance(int fileFilterType)
Gives a JFileChooser with a specific FileFilter.

Parameters:
fileFilterType - The FileFilter type.
  • FractalBrowserConstants.FRACTAL_FILE_FILTER
  • FractalBrowserConstants.DIRECTORY_FILE_FILTER
  • FractalBrowserConstants.XML_FILE_FILTER
Returns:
The appropriate JFileChooser.