IDialog Dialog system using Haxe.
Usually Haxe work in synchronous mode.( result
is directly return.
But you can call alls these commands in Asynchronous mode, just adding
the callback ( handler ) argument.
new HaxeDialog()static public showFileOpenDialogMETHOD:HaxeMethodstatic public showFileSaveDialogMETHOD:HaxeMethodstatic public showBrowseFolderDialogMETHOD:HaxeMethodstatic public confirmMETHODstatic public alertMETHOD:HaxeMethodpublic function showFileOpenDialog(caption:String, filterList:FileFilterCollection, multipleSelect:Boolean, handler:Delegate):StringOpens a File open chooser dialog.
caption | ( optional ) Dialog's title |
multipleSelect | ( optional ) true to enable multiple files selections in dialog
|
The file or file(s) selected by the user.
When the multipleSelect option is enabled and multiple files are returned, the list of files
will be separated by a ";" character.
Returns null if no selection is available.
public function showFileSaveDialog(caption:String, filterList:FileFilterCollection, fileName:String, handler:Delegate):StringOpens a File save chooser dialog.
caption | ( optional ) Dialog's title |
fileName | Not available in Haxe context |
A fully qualified file selected by the user ( or null )
public function showBrowseFolderDialog(caption:String, handler:Delegate):StringOpens a Browse folder dialog.
caption | ( optional ) Dialog's title |
The path to the selected folder ( or null )
showBrowseFolderDialog() in fever.app.context.abstract.IDialog
public function confirm(caption:String, handler:Delegate):BooleanOpens a confirm dialog.
caption | Dialog message |
true if user click on 'ok' button, otherwise false
public function alert(caption:String, handler:Delegate):VoidOpens a alert dialog.
caption | Dialog message |