se.datadosen.component
Class MacFileChooser

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

public class MacFileChooser
extends java.lang.Object
implements FileChooser


Constructor Summary
MacFileChooser(java.awt.Dialog parent)
           
MacFileChooser(java.awt.Frame parent)
           
 
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 title)
           
 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

MacFileChooser

public MacFileChooser(java.awt.Frame parent)

MacFileChooser

public MacFileChooser(java.awt.Dialog parent)
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

setSelectedFile

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

getSelectedFile

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

setDialogTitle

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

showOpenDialog

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

showSaveDialog

public int showSaveDialog(java.awt.Component parent)
Specified by:
showSaveDialog 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

setFileFilter

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

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

getSelectedFiles

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