registers the eventhandler to the given eventtype , can listen to the specified eventtype after this function call . concode_field_sep HashMap<EventType,ArrayList<EventHandler>> eventToHandler concode_field_sep void deregisterEventHandler concode_elem_sep void postEvent
void function ( EventType arg0 , EventHandler arg1 ) { if ( eventToHandler . containsKey ( arg0 ) ) { eventToHandler . get ( arg0 ) . add ( arg1 ) ; } else { ArrayList < EventHandler > loc0 = new ArrayList < EventHandler > ( ) ; loc0 . add ( arg1 ) ; eventToHandler . put ( arg0 , loc0 ) ; } }