se.datadosen.component
Class JXFileChooser

java.lang.Object
  extended by se.datadosen.component.JXFileChooser
All Implemented Interfaces:
FileChooser

public class JXFileChooser
extends java.lang.Object
implements FileChooser

Swing-like wrapper around XFileChooser


Constructor Summary
JXFileChooser()
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
           
 java.io.File getCurrentDirectory()
           
 java.io.File getSelectedFile()
           
 java.io.File[] getSelectedFiles()
           
 void setCurrentDirectory(java.io.File dir)
           
 void setDialogTitle(java.lang.String dialogTitle)
           
 void setDialogType(int dialogType)
           
 void setFileFilter(javax.swing.filechooser.FileFilter filter)
           
 void setFileSelectionMode(int mode)
           
 void setFileView(javax.swing.filechooser.FileView fileView)
           
 void setMultiSelectionEnabled(boolean b)
           
 void setSelectedFile(java.io.File file)
           
 int showDialog(java.awt.Component parent, java.lang.String approveButtonText)
           
 int showOpenDialog(java.awt.Component parent)
           
 int showSaveDialog(java.awt.Component parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JXFileChooser

public JXFileChooser()
Method Detail

setCurrentDirectory

public void setCurrentDirectory(java.io.File dir)
Specified by:
setCurrentDirectory in interface FileChooser

getCurrentDirectory

public java.io.File getCurrentDirectory()
Specified by:
getCurrentDirectory in interface FileChooser

setDialogTitle

public void setDialogTitle(java.lang.String dialogTitle)
Specified by:
setDialogTitle in interface FileChooser

setDialogType

public void setDialogType(int dialogType)
Specified by:
setDialogType in interface FileChooser

setMultiSelectionEnabled

public void setMultiSelectionEnabled(boolean b)
Specified by:
setMultiSelectionEnabled in interface FileChooser

setFileSelectionMode

public void setFileSelectionMode(int mode)
Specified by:
setFileSelectionMode in interface FileChooser

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Specified by:
addActionListener in interface FileChooser

setFileView

public void setFileView(javax.swing.filechooser.FileView fileView)
Specified by:
setFileView in interface FileChooser

showSaveDialog

public int showSaveDialog(java.awt.Component parent)
                   throws java.awt.HeadlessException
Specified by:
showSaveDialog in interface FileChooser
Throws:
java.awt.HeadlessException

showOpenDialog

public int showOpenDialog(java.awt.Component parent)
                   throws java.awt.HeadlessException
Specified by:
showOpenDialog in interface FileChooser
Throws:
java.awt.HeadlessException

showDialog

public int showDialog(java.awt.Component parent,
                      java.lang.String approveButtonText)
               throws java.awt.HeadlessException
Specified by:
showDialog in interface FileChooser
Throws:
java.awt.HeadlessException

getSelectedFile

public java.io.File getSelectedFile()
Specified by:
getSelectedFile in interface FileChooser

getSelectedFiles

public java.io.File[] getSelectedFiles()
Specified by:
getSelectedFiles in interface FileChooser

setFileFilter

public void setFileFilter(javax.swing.filechooser.FileFilter filter)
Specified by:
setFileFilter in interface FileChooser

setSelectedFile

public void setSelectedFile(java.io.File file)
Specified by:
setSelectedFile in interface FileChooser