private String registerEventHandler ( GFXEventHandler h ) { //checkInitialized(); if ( ! registeredOnJS ) { JSObject doc = ( JSObject ) runtime . execute ( "document" ) ; doc . setMember ( "jsHandlers" , jsHandlers ) ; registeredOnJS = true ; } return jsHandlers . registerHandler ( h ) ; }
Registers an event handler in the repository shared between Javascript and Java .