Class fever.app.context.haxe.HaxeDialog

Implemented Interfaces

IDialog

Description

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.

Field Index

alertMETHOD, confirmMETHOD, showBrowseFolderDialogMETHOD, showFileOpenDialogMETHOD, showFileSaveDialogMETHOD

Inherited from Dialog

Method Index

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

Inherited from Dialog

Constructor Detail

HaxeDialog

public function HaxeDialog()

Constructor.

Field Detail

showFileOpenDialogMETHOD

static public showFileOpenDialogMETHOD:HaxeMethod
Contstant. Haxe method name for showFileOpenDialog dialog method.

showFileSaveDialogMETHOD

static public showFileSaveDialogMETHOD:HaxeMethod
Contstant. Haxe method name for showFileSaveDialog dialog method.

showBrowseFolderDialogMETHOD

static public showBrowseFolderDialogMETHOD:HaxeMethod
Contstant. Haxe method name for showBrowseFolderDialog dialog method.

confirmMETHOD

static public confirmMETHOD
Contstant. Haxe method name for confirm dialog method.

alertMETHOD

static public alertMETHOD:HaxeMethod
Contstant. Haxe method name for message dialog method.

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
fileNameNot available in Haxe context

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