|
||||||||||
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 | |
---|---|
void |
open(UILauncher pLauncher,
Frame pFrame,
IFileHandleReceiver pFileHandleReceiver,
String pTitle)
Shows an "open" dialog. |
void |
saveAs(UILauncher pLauncher,
Frame pFrame,
IFileHandle pFileHandle,
String pTitle)
Shows a "Save as" dialog. |
void |
selectDirectory(UILauncher pLauncher,
Frame pFrame,
IFileHandleReceiver pFileHandleReceiver,
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, Frame pFrame, IFileHandle pFileHandle, String pTitle) throws 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
IOException
- if file access is not possible
SecurityException
- if a security manager denies the accesspublic void open(UILauncher pLauncher, Frame pFrame, IFileHandleReceiver pFileHandleReceiver, String pTitle) throws IOException
FileChooser.native
is true
, an AWT FileDialog
will be used, otherwise a JFileChooser
.
pLauncher
- the UI launcherpFrame
- the parent framepFileHandleReceiver
- the filehandle receiver for selected file(s)pTitle
- the dialog title
IOException
- if file access failspublic void selectDirectory(UILauncher pLauncher, Frame pFrame, IFileHandleReceiver pFileHandleReceiver, String pTitle) throws 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
IOException
- if file access is not possible
SecurityException
- if a security manager denies the access
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |