Download JAVA Tech nologies Co. Ltd. Marine Radio VERSION 3.0 User's Manual
Transcript
Selection and clipboard Method: selectPage(int pageNumber) E.g. ViewONE.selectPage(4); Toggles the select property on the page in a document indicated by the “pageNumber” parameter (available for multi-page documents only). Method: clearSelections() E.g. ViewONE.clearSelections(); Clears all page selections in the document (available for multi-page documents only). Method: copyPageToClipboard() E.g. ViewONE.copyPageToClipboard(); Produces a print dialog to allow the user to print the current page. Security note: This method is disabled by default unless the “JavascriptExtensions” parameter is set to “true”. Method: getSelection() E.g. selection = ViewONE.getSelection(); This method returns a comma-delimited string containing any pages selected by the user. 55