JAVA Tech VERSION 3.0 Events ids and descriptions, DocN Html tag is used see Html manual End tab

Page 84

Events ids and descriptions

ViewONE can signal many different events to the event handler.

The following list describes the events that will be received by this function (over page)…and the next page after provides a full example.

Id

 

 

Event Text

 

Description

 

 

 

 

 

 

 

 

1

 

 

 

 

Reserved.

 

 

 

 

 

 

 

 

2

 

 

 

 

Reserved.

 

 

 

 

 

 

 

3

 

printpage: page n of n

 

User has printed a page.

 

 

 

 

 

 

 

 

4

 

 

printvisible: page n of n

 

User has printed the visible part of a page

 

 

 

 

 

 

 

 

5

 

 

opened: url

 

User has opened a document

 

 

 

 

 

 

 

 

6

 

 

saved: page n of n

 

User has saved a page

 

 

 

 

 

 

 

 

7

 

 

click: page n of n

 

User has clicked on a page

 

 

 

 

 

 

 

 

8

 

 

dblclick: page n of n

 

User has double-clicked on a page

 

 

 

 

 

 

 

 

9

 

 

page: page n of n

 

User has changed page

 

 

 

 

 

 

 

 

10

 

 

timeout: page n of n

 

Indicates the applet has timed-out. See JavaScript method setTimeout()

 

 

 

 

and HTML tag “timeout”

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

 

 

 

Reserved.

 

 

 

 

 

 

 

 

12

 

 

select page: page n of n

 

User has selected a page

 

 

 

 

 

 

 

 

13

 

 

unselect page: page n of n

 

User has unselected a page

 

 

 

 

 

 

 

 

14

 

 

mouse down: page n of n

 

User has pressed a mouse button

 

 

 

 

 

 

 

 

15

 

 

mouse up: page n of n

 

User has released a mouse button

 

 

 

 

 

 

 

 

16

 

 

 

 

Reserved.

 

 

 

 

 

 

 

 

17

 

 

 

 

Reserved.

 

 

 

 

 

 

 

 

18

 

 

 

 

Reserved.

 

 

 

 

 

 

 

 

19

 

 

 

 

Reserved.

 

 

 

 

 

 

 

 

20

 

 

set document: doc n of n

 

User has selected the next document in the list (this applies only when the

 

 

 

 

“doc<N>“ HTML tag is used – see HTML manual)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

21

 

 

end tab

 

The user has used the tab key to change focus while the last focusable

 

 

 

 

component in ViewONE already had focus. ViewONE will assign focus

 

 

 

 

 

 

 

 

 

 

 

 

back to the first in its list, however you may override ViewONE by using this

 

84

Image 84
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 StandardViewONE Pro Mayscript parameterApple Macintosh users JavaScript 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 Opening documents and images OpenFilefilename,CloseDocument ViewONE.closeDocument Closes an open documentPage Method Group Method openListlistFile, ReloadList OpenDocindexNextDoc PrevDoc FirstDoc LastDoc GetDocIndex GetNumDocs MethodgetNumPagesMethodsetPagepage Method getPageMethod nextPage Method previousPageMethodgetDocReference Method getCacheFileSpecifying an Annotations File MethodsetAnnotationFilefilenameSaving documents and images SavefilenameSavePagefilename MethodsaveSelectedfilenameMethodisMultipageTif Document hyperlinks SetHyperlinkurl, dblClickClearHyperlink Method Pro-Only Method Pro-Only Method Cold Viewing Options Pro-Only SetBackgroundImagefilename, pageNumber SetBackgroundImageEnabledtrue/false IsBackgroundImageEnabledDocument Indexes Pro-Only SetIndexListFileURLImage InvertSetInvertedtrue/false IsInvertedIsEnhancetrue/false SetEnhanceModemodeGetEnhanceMode SetRotationangleMethod initializeRotationArrayint size Method setRotationArrayint angle, intMethod applyRotationArray Method getRotationMethodrotateClockwise Method rotateCounterclockwiseRotate180 SetFlipmodeGetFlip SetScalescaleGetScale GetStatesViewONE.zoom100 Zooms image to 100% full resolution Method setStatesstring statesMethod zoomOut Method zoom100Method setZoomzoom Method setZoomAndXYScrollzoom, x, yMethod zoomAreax, y, width, height, highlight, seconds SetXYScrollx, yMethod setDraggingEnabledtrue/false Method isDraggingEnabledMethod resetBrightness Method setBrightnesspercentMethod resetContrast Method getBrightnessMethod setContrastpercent Method getContrastMethod resetLuminance Method setLuminancepercentMethod getLuminance Method getImageWidthMethod getXResolution Method getYResolutionGetImageHeight Viewing SetViewviewGetView SetAreaZoomtrue/false IsAreaZoomToggleAreaZoom Method setMagnifiertrue/falseMethod setMagnifierInternaltrue/false IsMagnifier ToggleMagnifierSetMagFactor Method getMagFactorIsNewWindowVisible SetImageForeColorcolorShowImageForeColorDialog SetImageBackColorcolor ShowImageBackColorDialogLabels Selection and clipboard Method selectPageint pageNumberMethod clearSelections Method copyPageToClipboardPrinting PrintPagePrintDocument PrintRangePrintSelected PrintVisiblePrintTransformed SetPrintDialogtrue/falseMethod isPrintDialog Method setPrintCopiesintegerMethod setPrinterstring Method setPrintHeaderheaderString Or some other informational textMethod setPrintAutoRotate true/false Toolbars and Buttons Method setScrollbarstrue/falseIsScrollbars SetStatusBartrue/falseMethod setFileButtonstrue/false Method isFileButtonsMethod setImageButtonstrue/false IsImageButtonsSetPrintButtonstrue/false Method isPrintButtons SetInvertButtonstrue/falseIsInvertButtons Method setNewWindowButtonstrue/falseIsNewWindowButtons SetViewButtonstrue/falseMethod isViewButtons Method setAllButtonstrue/falseMethod isAllButtons MethodsetPageButtonstrue/falseMethod isPageButtons ToggleAdjustTool SetAdjustToolVisibleOnOffIsAdjustToolVisible Menus and keys SetFileMenustrue/falseIsFileMenus ViewONE.setFileMenustrueSetViewMenustrue/false IsViewMenusViewONE.setViewMenustrue SetImageMenustrue/false IsImageMenusViewONE.setImageMenustrue SetPrintMenustrue/false IsPrintMenusViewONE.setPrintMenustrue SetPageMenustrue/false IsPageMenusViewONE.setPageMenustrue SetSelectMenustrue/false IsSelectMenusViewONE.setSelectMenustrue SetPreferenceMenustrue/false IsPreferenceMenusViewONE.setPreferenceMenustrue SetAllMenustrue/false IsAllMenusSetFileKeystrue/false IsFileKeysSetImageKeystrue/false IsImageKeysSetPrintKeystrue/false IsPrintKeysSetViewKeystrue/false IsViewKeys SetPageKeystrue/falseIsPageKeys SetSelectKeystrue/falseMethod isSelectKeys Method setAllKeystrue/falseMethod isAllKeys Timeout/User Idle Control Method setTimeoutsecondsMethod getTimeout 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