public String registerHandler ( GFXEventHandler handler ) { String uuid = UUID . randomUUID ( ) . toString ( ) ; handlers . put ( uuid , handler ) ; return uuid ; }
Registers a handler and returns the callback key to be passed to Javascript .