Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.util.swing
Class GenericFileDialog

java.lang.Object
  extended by net.java.sip.communicator.util.swing.GenericFileDialog

public class GenericFileDialog
extends Object

This class is the entry point for creating a file dialog regarding to the OS. If the current operating system is Apple Mac OS X, we create an AWT FileDialog (user interface is more practical under Mac OS than a JFileChooser), else, a Swing JFileChooser.

Author:
Valentin Martinet

Constructor Summary
GenericFileDialog()
           
 
Method Summary
static SipCommFileChooser create(Frame parent, String title, int fileOperation)
          Creates a file dialog (AWT's FileDialog or Swing's JFileChooser) regarding to user's operating system.
static SipCommFileChooser create(Frame parent, String title, int fileOperation, String path)
          Creates a file dialog (AWT FileDialog or Swing JFileChooser) regarding to user's operating system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericFileDialog

public GenericFileDialog()
Method Detail

create

public static SipCommFileChooser create(Frame parent,
                                        String title,
                                        int fileOperation)
Creates a file dialog (AWT's FileDialog or Swing's JFileChooser) regarding to user's operating system.

Parameters:
parent - the parent Frame/JFrame of this dialog
title - dialog's title
fileOperation -
Returns:
a SipCommFileChooser instance

create

public static SipCommFileChooser create(Frame parent,
                                        String title,
                                        int fileOperation,
                                        String path)
Creates a file dialog (AWT FileDialog or Swing JFileChooser) regarding to user's operating system.

Parameters:
parent - the parent Frame/JFrame of this dialog
title - dialog's title
fileOperation -
path - start path of this dialog
Returns:
SipCommFileChooser an implementation of SipCommFileChooser

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.