Added JavaDoc for onXXX methods
fixed cut&past error