@ Override public boolean onEvent ( final LmlParser parser , final Array < Actor > parsingResult ) { final ObjectMap < String , Actor > actorsByIds = parser . getActorsMappedByIds ( ) ; for ( final String id : ids ) { final Actor actor = actorsByIds . get ( id ) ; if ( actor != null ) { attachListener ( actor ) ; } else if ( ! keep ) { parser . throwErrorIfStrict ( "Unknown ID: '" + id + "'. Cannot attach listener." ) ; } } return keep ; }
Invoked after template parsing . Hooks up the listener to actors registered by attachTo attribute .