|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.swing.impl.FileChooser
public class FileChooser
The FileChooser encapsulates the access to AWT or Swing File chooser. It stores
the last used directory/file and reuses the last selection for a new selection.
| Constructor Summary | |
|---|---|
FileChooser()
|
|
| Method Summary | |
|---|---|
IFileHandle[] |
open(UILauncher pLauncher,
java.awt.Frame pFrame,
java.lang.String pTitle)
Shows an "open" dialog. |
void |
saveAs(UILauncher pLauncher,
java.awt.Frame pFrame,
IFileHandle pFileHandle,
java.lang.String pTitle)
Shows a "Save as" dialog. |
void |
selectDirectory(UILauncher pLauncher,
java.awt.Frame pFrame,
IFileHandleReceiver pFileHandleReceiver,
java.lang.String pTitle)
Shows an "open directory" dialog. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileChooser()
| Method Detail |
|---|
public void saveAs(UILauncher pLauncher,
java.awt.Frame pFrame,
IFileHandle pFileHandle,
java.lang.String pTitle)
throws java.io.IOException
FileChooser.native is true, an AWT FileDialog
will be used, otherwise a JFileChooser.
pLauncher - the UI launcherpFrame - the parent framepFileHandle - the file handlepTitle - the dialog title
java.io.IOException - if file access is not possible
java.lang.SecurityException - if a security manager denies the access
public IFileHandle[] open(UILauncher pLauncher,
java.awt.Frame pFrame,
java.lang.String pTitle)
throws java.io.IOException
FileChooser.native is true, an AWT FileDialog
will be used, otherwise a JFileChooser.
pLauncher - the UI launcherpFrame - the parent framepTitle - the dialog title
java.io.IOException - if file access fails
public void selectDirectory(UILauncher pLauncher,
java.awt.Frame pFrame,
IFileHandleReceiver pFileHandleReceiver,
java.lang.String pTitle)
throws java.io.IOException
FileChooser.native is true, an AWT FileDialog
will be used, otherwise a JFileChooser. On Windows OS' a JFileChooser will be used because FileDialog does
not support directory selection on Windows.
pLauncher - the UI launcherpFrame - the parent framepFileHandleReceiver - the filehandle receiver for selected directorypTitle - the dialog title
java.io.IOException - if file access is not possible
java.lang.SecurityException - if a security manager denies the access
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||