public class SwtFileDialog extends java.lang.Object implements GralFileDialog_ifc
Modifier and Type | Field and Description |
---|---|
private DirectoryDialog |
dirDialog |
private FileDialog |
fileDialog |
private Shell |
shell |
private java.lang.String |
sOpenResult |
directory, multi, version
Constructor and Description |
---|
SwtFileDialog(Shell shell) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getMultiSelection() |
java.lang.String |
getSelection()
Returns the last selected local path and file.
|
boolean |
open(java.lang.String sTitle,
int mode) |
java.lang.String |
show(java.lang.String sBaseDir,
java.lang.String sLocalDir,
java.lang.String sMask,
java.lang.String sTitle)
Shows the file dialog.
|
private FileDialog fileDialog
private DirectoryDialog dirDialog
private final Shell shell
private java.lang.String sOpenResult
public boolean open(java.lang.String sTitle, int mode)
open
in interface GralFileDialog_ifc
public java.lang.String show(java.lang.String sBaseDir, java.lang.String sLocalDir, java.lang.String sMask, java.lang.String sTitle)
GralFileDialog_ifc
show
in interface GralFileDialog_ifc
sBaseDir
- Part of start path, which should not be leave in selection. May be nullsLocalDir
- Part of start path which is shown as default. May be null.
If both sBaseDir and sLocalDir are null, the dialog may start with the last saved base dir.sMask
- If not null, then mask for file selection. If null, all files will be shown.sTitle
- The title in the dialog's title. If null, then the title is unchanged.public java.lang.String[] getMultiSelection()
getMultiSelection
in interface GralFileDialog_ifc
public java.lang.String getSelection()
GralFileDialog_ifc
getSelection
in interface GralFileDialog_ifc