BiLauncher

This class can be used to create a launcher for launching Bindows applications

This class extends Object and therefore all methods and fields available for Object are also available for BiLauncher .

Constructor

new BiLauncher ( [ sRootPath ] )

Parameters

NameTypeOptionalDefaultDescripton
sRootPathStringcheckedOptional path to the root of the Bindows directory.

Properties

NameTypegetsetDescripton
accessibilityModeBooleancheckedcheckedThis property can be used to tell whether the application should be in an accessibility mode.
adfNameStringcheckedcheckedThe ADF name is taken from the ADF path
adfPathStringcheckedcheckedThe path to the ADF file.
argumentsString[]checkedcheckedThe arguments to pass to the main method of the ADF
errorMessageStringcheckedThe message to display when an error is encountered during the process of launching the application.
focusOnLoadBooleancheckedcheckedWhether to try to focus the window when the application loads
hasErrorBooleancheckedThis is true if an error has occurred.
newWindowBooleancheckedcheckedWhether to launch the application in a new window
reuseWindowBooleancheckedcheckedWhether to reuse a previously opened window. If you want to launch the new application in the current window set newWindow to false.
rootPathStringcheckedcheckedThe path where Bindows resides. This is usually the path where bimain.html can be found.
supportedBooleancheckedWhether the current browser supports Bindows.
targetStringcheckedcheckedThe target name of the window or frame to open the application in. If this is "" or null the ADF name will be used instead. If reuseWindow is false then this property will be ignored.
windowObjectcheckedThis returns the browser window that the application is launched in

Methods

NameDescription
launchThis launches the Bindows application using the properties previously set and using the arguments provided. The number of arguments are optional and these will be passed to the main method in the ADF file as strings.

Events

None.

Static Methods

None.

Static Fields

NameTypeDescripton
ADF_ARGUMENT_PARSE_ERRORStringError message to show when the ADF argument cannot be parsed
FILE_NOT_FOUNDStringError message to show when file is not found
GECKO_ERROR_VERSIONStringError message to show when using a too old version of Gecko
IE_ERROR_PLATFORMStringError message to show when using IE on a non supported platform
IE_ERROR_VERSIONStringError message to show when using a too old version of IE
MISSING_ADF_ARGUMENTStringError message to show when the ADF argument is missing
NOT_SUPPORTED_ERRORStringError message to show when using a non supported browser
POPUP_BLOCKER_QUESTIONStringError message to show when the window failed to open and ask the user if they might have a popup blocker that interferes with opening the window

Remarks

You can also use the function biExec directly. biExec( sRootPath, sAdfPath, bDontOpenNewWindow, args... ) The 4th and the following arguments are passed as arguments to the main method of the ADF.

Method Details

launch

This launches the Bindows application using the properties previously set and using the arguments provided. The number of arguments are optional and these will be passed to the main method in the ADF file as strings.

Syntax

object.launch ( [ sAdfPath [ ,oArgs ] ] )

Parameters

NameTypeOptionalDefaultDescripton
sAdfPathStringcheckedThe path to the ADF file. If this is a relative path it is relative to the current document. If this is left out then the adfPath is used.
oArgsStringcheckedAny number of arguments that will be passed to the main ADF method.

Return Type

Boolean