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

Name Type Optional Default Descripton
sRootPath String checked Optional path to the root of the Bindows directory.

Properties

Name Type get set Descripton
accessibilityMode Boolean checked checked This property can be used to tell whether the application should be in an accessibility mode.
adfName String checked checked The ADF name is taken from the ADF path
adfPath String checked checked The path to the ADF file.
arguments String[] checked checked The arguments to pass to the main method of the ADF
errorMessage String checked The message to display when an error is encountered during the process of launching the application.
focusOnLoad Boolean checked checked Whether to try to focus the window when the application loads
hasError Boolean checked This is true if an error has occurred.
newWindow Boolean checked checked Whether to launch the application in a new window
reuseWindow Boolean checked checked Whether to reuse a previously opened window. If you want to launch the new application in the current window set newWindow to false.
rootPath String checked checked The path where Bindows resides. This is usually the path where bimain.html can be found.
supported Boolean checked Whether the current browser supports Bindows.
target String checked checked The 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.
window Object checked This returns the browser window that the application is launched in

Methods

Name Description
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.

Events

None.

Static Methods

None.

Static Fields

Name Type Descripton
ADF_ARGUMENT_PARSE_ERROR String Error message to show when the ADF argument cannot be parsed
FILE_NOT_FOUND String Error message to show when file is not found
GECKO_ERROR_VERSION String Error message to show when using a too old version of Gecko
IE_ERROR_PLATFORM String Error message to show when using IE on a non supported platform
IE_ERROR_VERSION String Error message to show when using a too old version of IE
MISSING_ADF_ARGUMENT String Error message to show when the ADF argument is missing
NOT_SUPPORTED_ERROR String Error message to show when using a non supported browser
POPUP_BLOCKER_QUESTION String Error 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

Name Type Optional Default Descripton
sAdfPath String checked The 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.
oArgs String checked Any number of arguments that will be passed to the main ADF method.

Return Type

Boolean