Modifying the User Interface
Adding Navigation to PDF Documents
10
// Open action for thumbnail:
this.setPageAction(2, "Open", "app.alert('Hello!');");
// MouseUp actions for bookmark and link:
myBookmark.setAction("app.alert('Hello!');");
myLink.setAction("app.alert('Hello!');");
Action Types
The actions applied to navigational components represent a small portion of the possible
events that may be customized. A complete list of event types and the actions with which
they are associated is shown below in
Table 10.10:
T
ABLE
10.10
Action Types and Associated Events
Action Type
Event Names
App
Batch
Bookmark
Console
Doc
External
Field
Init
Exec
Mouse Up
Exec
DidPrint
,
DidSave
,
Open
,
WillClose
,
WillPrint
,
WillSave
Exec
Blur
,
Calculate
,
Focus
,
Format
,
Keystroke
,
Mouse Down
,
Mouse Enter
,
Mouse Exit
,
Mouse Up
,
Validate
Mouse Up
Exec
Open
,
Close
InView
,
OutView
,
Open
,
Close
,
Focus
,
Blur
,
Mouse Up
,
Mouse Down
,
Mouse Enter
,
Mouse Exit
Link
Menu
Page
Screen
Acrobat JavaScript Scripting Guide
179