Method:

Method:

Method:

Method:

setAllMenus(true/false)

E.g. ViewONE.setAllMenus(true);

Specifies whether the all pop-up menus are available. A value of ‘true’ (default) indicates the menus are available and ‘false’ indicates they are not.

Security note: This method is disabled by default unless the “JavascriptExtensions” parameter is set to “true”.

isAllMenus()

E.g. var menusEnabled = ViewONE.isAllMenus();

Returns a Boolean value of ‘true’ if the menus are enabled else a value ‘false’ is returned.

menus are available and ‘false’ indicates they are not.

setFileKeys(true/false)

E.g. ViewONE.setFileKeys(true);

Specifies whether the hot keys for file operations are enabled. A value of ‘true’ (default) indicates the keys are enabled and ‘false’ indicates they are not.

The keys are as follows:

 

Open File

O

Open URL

Shift-O

Close

C

Save

F

New window

W

Security note: This method is disabled by default unless the “JavascriptExtensions” parameter is set to “true”.

isFileKeys()

E.g. var keysEnabled = ViewONE.isFileKeys ();

Returns a Boolean value of ‘true’ if the keys are enabled else a value ‘false’ is returned.

75

Page 75
Image 75
JAVA Tech VERSION 3.0 manual SetAllMenustrue/false, IsAllMenus, SetFileKeystrue/false, IsFileKeys, Close Save New window