Class SwingFileChooserDialogService
- java.lang.Object
-
- net.sf.jguiraffe.gui.platform.swing.dlg.filechooser.SwingFileChooserDialogService
-
- All Implemented Interfaces:
net.sf.jguiraffe.gui.dlg.filechooser.FileChooserDialogService
public class SwingFileChooserDialogService extends Object implements net.sf.jguiraffe.gui.dlg.filechooser.FileChooserDialogService
The Swing-specific implementation of the file chooser dialog service.
This implementation uses the
JFileChooser
class of Swing to display dialogs to choose files or directories.- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description SwingFileChooserDialogService(net.sf.jguiraffe.gui.app.ApplicationContext appCtx)
Creates a new instance ofSwingFileChooserDialogService
and initializes it with the given application context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JFileChooser
createFileChooser()
Creates theJFileChooser
object that is used to display the dialogs constructed by this class.net.sf.jguiraffe.gui.app.ApplicationContext
getApplicationContext()
Returns theApplicationContext
used by service.void
showChooseDirectoryDialog(net.sf.jguiraffe.gui.dlg.filechooser.DirectoryChooserOptions options)
void
showOpenFileDialog(net.sf.jguiraffe.gui.dlg.filechooser.FileChooserOptions options)
void
showOpenMultiFileDialog(net.sf.jguiraffe.gui.dlg.filechooser.MultiFileChooserOptions options)
void
showSaveFileDialog(net.sf.jguiraffe.gui.dlg.filechooser.FileChooserOptions options)
-
-
-
Method Detail
-
getApplicationContext
public net.sf.jguiraffe.gui.app.ApplicationContext getApplicationContext()
Returns theApplicationContext
used by service.- Returns:
- the
ApplicationContext
-
showOpenFileDialog
public void showOpenFileDialog(net.sf.jguiraffe.gui.dlg.filechooser.FileChooserOptions options)
- Specified by:
showOpenFileDialog
in interfacenet.sf.jguiraffe.gui.dlg.filechooser.FileChooserDialogService
-
showOpenMultiFileDialog
public void showOpenMultiFileDialog(net.sf.jguiraffe.gui.dlg.filechooser.MultiFileChooserOptions options)
- Specified by:
showOpenMultiFileDialog
in interfacenet.sf.jguiraffe.gui.dlg.filechooser.FileChooserDialogService
-
showSaveFileDialog
public void showSaveFileDialog(net.sf.jguiraffe.gui.dlg.filechooser.FileChooserOptions options)
- Specified by:
showSaveFileDialog
in interfacenet.sf.jguiraffe.gui.dlg.filechooser.FileChooserDialogService
-
showChooseDirectoryDialog
public void showChooseDirectoryDialog(net.sf.jguiraffe.gui.dlg.filechooser.DirectoryChooserOptions options)
- Specified by:
showChooseDirectoryDialog
in interfacenet.sf.jguiraffe.gui.dlg.filechooser.FileChooserDialogService
-
createFileChooser
protected JFileChooser createFileChooser()
Creates theJFileChooser
object that is used to display the dialogs constructed by this class.- Returns:
- the
JFileChooser
-
-