JAVA Tech VERSION 3.0 manual First time the page is viewed

Page 86

-Windows main menu key

-Popup menu key

The following keys will generate events but will always also be handled by

ViewONE event when ProcessKeys is set to False…

-Scroll bar keys (Page up/down, home, end, arrow keys)

-Windows menu key

Modifier and cursor keys are defined using names (see below)

Examples:

Event Text

Descriptio

 

 

“A”

A key pressed

 

 

Control A

Ctrl + A keys pressed

 

 

Shift A

Shift + A keys pressed

 

 

Alt A

Alt + A keys pressed

 

 

Alt Shift Control A

Alt Shift + Ctrl + A keys pressed

 

 

Space

Space key pressed

 

 

Ctrl Space

Ctrl + Space keys pressed

 

 

Caps Lock

Caps Lock pressed

 

 

Up

Up arrow key pressed

 

 

 

9 key on a number pad is pressed (note

Numpad-9

some numpad keys have a ‘-‘ separator

 

rather than a space)

 

 

38

Full page rendered

A page has been viewed in the full-page panel. This event only occurs the

first time the page is viewed.

 

 

 

 

 

39

All full pages rendered

All pages in the document have been viewed in the full-page panel. This

event occurs only once per document.

 

 

 

 

 

40

 

Reserved

 

 

 

41

Keep Alive

This event is generated at regular intervals (specified by the KeepAliveTime

HTML paramater). The text accompanying the event is specified by the

 

 

KeepAlive HTML paramater.

 

 

 

42

Save Complete

Generated when a document is successfully saved.

 

 

 

43

Cache Access Denied

This event is generated if all attempts to write to a ViewONE cache have

failed.

 

 

86

Image 86
Contents ViewONE JavaScript API Manual Contents Specifying an Annotations File Viewing Toolbars and Buttons Timeout/User Idle Control Introduction Applet user interface Installing ViewONE ViewONE StandardApple Macintosh users JavaScript ViewONE ProMayscript parameter Using ViewONE Standard on IE for Apple Macintosh Apple Macintosh users HtmlSetting up Windows 2003 server Page Page ViewONE JavaScript Overview JavaScript Reference General Applet Control Method isReadyMethod getVersion CloseDocument Opening documents and imagesOpenFilefilename, ViewONE.closeDocument Closes an open documentPage Method Group Method openListlistFile, NextDoc PrevDoc FirstDoc LastDoc GetDocIndex GetNumDocs ReloadListOpenDocindex MethodgetNumPagesMethod nextPage MethodsetPagepageMethod getPage Method previousPageMethodgetDocReference Method getCacheFileSpecifying an Annotations File MethodsetAnnotationFilefilenameSavePagefilename Saving documents and imagesSavefilename MethodsaveSelectedfilenameMethodisMultipageTif ClearHyperlink Document hyperlinksSetHyperlinkurl, dblClick Method Pro-Only Method Pro-Only Method Cold Viewing Options Pro-Only SetBackgroundImagefilename, pageNumber SetBackgroundImageEnabledtrue/false IsBackgroundImageEnabledDocument Indexes Pro-Only SetIndexListFileURLSetInvertedtrue/false ImageInvert IsInvertedGetEnhanceMode IsEnhancetrue/falseSetEnhanceModemode SetRotationangleMethod applyRotationArray Method initializeRotationArrayint sizeMethod setRotationArrayint angle, int Method getRotationRotate180 MethodrotateClockwiseMethod rotateCounterclockwise SetFlipmodeGetScale GetFlipSetScalescale GetStatesMethod zoomOut ViewONE.zoom100 Zooms image to 100% full resolutionMethod setStatesstring states Method zoom100Method zoomAreax, y, width, height, highlight, seconds Method setZoomzoomMethod setZoomAndXYScrollzoom, x, y SetXYScrollx, yMethod resetBrightness Method setDraggingEnabledtrue/falseMethod isDraggingEnabled Method setBrightnesspercentMethod setContrastpercent Method resetContrastMethod getBrightness Method getContrastMethod getLuminance Method resetLuminanceMethod setLuminancepercent Method getImageWidthGetImageHeight Method getXResolutionMethod getYResolution GetView ViewingSetViewview ToggleAreaZoom SetAreaZoomtrue/falseIsAreaZoom Method setMagnifiertrue/falseMethod setMagnifierInternaltrue/false SetMagFactor IsMagnifierToggleMagnifier Method getMagFactorShowImageForeColorDialog IsNewWindowVisibleSetImageForeColorcolor SetImageBackColorcolor ShowImageBackColorDialogLabels Method clearSelections Selection and clipboardMethod selectPageint pageNumber Method copyPageToClipboardPrintDocument PrintingPrintPage PrintRangePrintTransformed PrintSelectedPrintVisible SetPrintDialogtrue/falseMethod setPrinterstring Method isPrintDialogMethod setPrintCopiesinteger Method setPrintHeaderheaderString Or some other informational textMethod setPrintAutoRotate true/false IsScrollbars Toolbars and ButtonsMethod setScrollbarstrue/false SetStatusBartrue/falseMethod setFileButtonstrue/false Method isFileButtonsSetPrintButtonstrue/false Method setImageButtonstrue/falseIsImageButtons IsInvertButtons Method isPrintButtonsSetInvertButtonstrue/false Method setNewWindowButtonstrue/falseMethod isViewButtons IsNewWindowButtonsSetViewButtonstrue/false Method setAllButtonstrue/falseMethod isPageButtons Method isAllButtonsMethodsetPageButtonstrue/false IsAdjustToolVisible ToggleAdjustToolSetAdjustToolVisibleOnOff IsFileMenus Menus and keysSetFileMenustrue/false ViewONE.setFileMenustrueViewONE.setViewMenustrue SetViewMenustrue/falseIsViewMenus ViewONE.setImageMenustrue SetImageMenustrue/falseIsImageMenus ViewONE.setPrintMenustrue SetPrintMenustrue/falseIsPrintMenus ViewONE.setPageMenustrue SetPageMenustrue/falseIsPageMenus ViewONE.setSelectMenustrue SetSelectMenustrue/falseIsSelectMenus ViewONE.setPreferenceMenustrue SetPreferenceMenustrue/falseIsPreferenceMenus SetFileKeystrue/false SetAllMenustrue/falseIsAllMenus IsFileKeysSetImageKeystrue/false IsImageKeysSetViewKeystrue/false SetPrintKeystrue/falseIsPrintKeys IsPageKeys IsViewKeysSetPageKeystrue/false SetSelectKeystrue/falseMethod isAllKeys Method isSelectKeysMethod setAllKeystrue/false Method getTimeout Timeout/User Idle ControlMethod setTimeoutseconds Method stopTimeoutMethod getTimeLeft Event Handler and Event Handling Events handler change in ViewONE Version Events ids and descriptions DocN Html tag is used see Html manual End tabReady First time the page is viewed Event Handler example HSPACE=0 VSPACE=0Testing your Event Handler MayScript tag