Class fever.app.context.swfstudio.StudioDialog

Implemented Interfaces

IDialog

Description

Dialog system using SWF Studio V3.

Usually SWF Studio V3 work in synchronous mode.( result is directly return.
But you can call alls these commands in Asynchronous mode, just adding the callback ( handler ) argument.

Field Index

Inherited from Dialog

Method Index

new StudioDialog()
alert(), confirm(), message(), showBrowseFolderDialog(), showFileOpenDialog(), showFileSaveDialog()

Inherited from Dialog

Constructor Detail

StudioDialog

public function StudioDialog()

Constructor.

Method Detail

showFileOpenDialog

public function showFileOpenDialog(caption:String, filterList:FileFilterCollection, multipleSelect:Boolean, handler:Delegate):String

Opens a File open chooser dialog.

Parameters

caption( optional ) Dialog's title
multipleSelect( optional ) true to enable multiple files selections in dialog

Return

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.

Specified By

showFileOpenDialog() in fever.app.context.abstract.IDialog

showFileSaveDialog

public function showFileSaveDialog(caption:String, filterList:FileFilterCollection, fileName:String, handler:Delegate):String

Opens a File save chooser dialog.

Parameters

caption( optional ) Dialog's title
fileName( optional ) default filename used to populate "filename" dialog's field

Return

A fully qualified file selected by the user ( or null )

Specified By

showFileSaveDialog() in fever.app.context.abstract.IDialog

showBrowseFolderDialog

public function showBrowseFolderDialog(caption:String, handler:Delegate):String

Opens a Browse folder dialog.

Parameters

caption( optional ) Dialog's title

Return

The path to the selected folder ( or null )

Specified By

showBrowseFolderDialog() in fever.app.context.abstract.IDialog

confirm

public function confirm(caption:String, handler:Delegate):Boolean

Opens a confirm dialog.

Parameters

captionDialog message

Return

true if user click on 'ok' button, otherwise false

Specified By

confirm() in fever.app.context.abstract.IDialog

alert

public function alert(caption:String, handler:Delegate):Void

Opens a alert dialog.

Parameters

captionDialog message

Specified By

alert() in fever.app.context.abstract.IDialog

message

public function message(caption:String, handler:Delegate):Void

Opens a message dialog.

Parameters

captionDialog message

Specified By

message() in fever.app.context.abstract.IDialog