IDialog Dialog management using browser context.
Some methods are Asynchronous; don't forget to define callback parameter for these methods.
new BrowserDialog()static public onShowFileOpenDialogEVENT:EventTypestatic public onShowFileSaveDialogEVENT:EventTypestatic public onShowBrowseFolderDialogEVENT:EventTypestatic public onOpenConfirmDialogEVENT:EventTypestatic public onOpenAlertDialogEVENT:EventTypestatic public onOpenMessageDialogEVENT:EventTypepublic function showFileOpenDialog(caption:String, filterList:FileFilterCollection, multipleSelect:Boolean, handler:Delegate):StringOpens a File open chooser dialog.
If handler is undefined throws a
RuntimeException exeption as this method can't be
executed in synchronous mode.
As we need a complex UI to display a 'FileOpen' dialog, Fever
not contain any basic implementation.
You have to associate your own command to onShowFileOpenDialogEVENT event type using
the FeverController front controller.
For example, if you use the available implementation in FvAsWing framework :
FeverController.getInstance().push( BrowserDialog.onShowFileOpenDialogEVENT, new FvShowFileOpenDialog() );
If no command is found, throws a RuntimeException exeption.
caption | ( optional ) Dialog's title |
multipleSelect | ( optional ) true to enable multiple files selections in dialog
|
handler | Callback to activate when result is received |
Nothing as this method is asynchronous in browser context.
handler must be defined to retreive selection result.
public function showFileSaveDialog(caption:String, filterList:FileFilterCollection, fileName:String, handler:Delegate):StringOpens a File save chooser dialog.
If handler is undefined throws a
RuntimeException exeption as this method can't be
executed in synchronous mode.
As we need a complex UI to display a 'FileSave' dialog, Fever
not contain any basic implementation.
You have to associate your own command to onShowFileSaveDialogEVENT event type using
the FeverController front controller.
For example, if you use the available implementation in FvAsWing framework :
FeverController.getInstance().push( BrowserDialog.onShowFileSaveDialogEVENT, new FvShowFileSaveDialog() );
If no command is found, throws a RuntimeException exeption.
caption | ( optional ) Dialog's title |
fileName | ( optional ) default filename used to populate "filename" dialog's field |
handler | Callback to activate when result is received |
Nothing as this method is asynchronous in browser context.
handler must be defined to retreive selection result.
public function showBrowseFolderDialog(caption:String, handler:Delegate):StringOpens a Browse folder dialog.
If handler is undefined throws a
RuntimeException exeption as this method can't be
executed in synchronous mode.
As we need a complex UI to display a 'Browse folder' dialog, Fever
not contain any basic implementation.
You have to associate your own command to opens a Browse folder dialog using
the FeverController front controller.
For example, if you use the available implementation in FvAsWing framework :
FeverController.getInstance().push( BrowserDialog.onShowBrowseFolderDialogEVENT, new FvShowBrowseFolderDialog() );
If no command is found, throws a RuntimeException exeption.
caption | ( optional ) Dialog's title |
handler | Callback to activate when result is received |
Nothing as this method is asynchronous in browser context.
handler must be defined to retreive selection result.
showBrowseFolderDialog() in fever.app.context.abstract.IDialog
public function confirm(caption:String, handler:Delegate):BooleanOpens a confirm dialog.
If handler is undefined use the synchronous method ( js command coupling
with ExternalInterface ), so result is directly return.
If handler is defined, dispatchs the onOpenConfirmDialogEVENT event throw
FeverController front controller.
You must associated command with this event type to use your own confirm dialog.
For example, if you use the available implementation in FvAsWing framework :
FeverController.getInstance().push( BrowserDialog.onOpenConfirmDialogEVENT, new FvOpenConfirmDialog() );
caption | Dialog message |
true if user click on 'ok' button, otherwise false ( in synchronous mode
of course )
public function alert(caption:String, handler:Delegate):VoidOpens a alert dialog.
If a command is associated to onOpenAlertDialogEVENT event type in
FeverController front controller, command is executed.
Either use the basic synchronous method ( 'alert' javascript method coupled with ExternalInterface ).
For example, if you use the available implementation in FvAsWing framework :
FeverController.getInstance().push( BrowserDialog.onOpenAlertDialogEVENT, new FvOpenAlertDialog() );
caption | Dialog message |
public function message(caption:String, handler:Delegate):VoidOpens a alert dialog.
If a command is associated to onOpenMessageDialogEVENT event type in
FeverController front controller, command is executed.
Either use the basic synchronous method ( 'alert' javascript method coupled with ExternalInterface ).
For example, if you use the available implementation in FvAsWing framework :
FeverController.getInstance().push( BrowserDialog.onOpenMessageDialogEVENT, new FvOpenMessageDialog() );
caption | Dialog message |