Method:

Method:

isNewWindowButtons()

E.g. var buttonVisible = ViewONE.isNewWindowButtons();

Returns a Boolean value of ‘true’ if the new-window button is visible else a value ‘false’ is returned.

setViewButtons(true/false)

E.g. ViewONE.setViewButtons(true);

Specifies whether the toolbar includes view buttons. A value of ‘true’ (default) indicates the buttons are visible and ‘false’ indicates they are not.

The view buttons are:

Fullpage, Thumbnails, Two-page, Thumbs-left, Thumbs-bottom, Thumbs-right, Thumbs- top.

Method: isViewButtons()

E.g. var buttonsVisible = ViewONE.isViewButtons();

Returns a Boolean value of ‘true’ if the view buttons are visible else a value ‘false’ is returned.

Method: setAllButtons(true/false)

E.g. ViewONE.setAllButtons(true);

Specifies whether all buttons are visible or not (these are file, print, image, new-window and view buttons). A value of ‘true’ (default) indicates the buttons are visible and ‘false’ indicates they are not.

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

65

Page 65
Image 65
JAVA Tech VERSION 3.0 IsNewWindowButtons, SetViewButtonstrue/false, Method isViewButtons, Method setAllButtonstrue/false