protected static void fireElementAddedEvent ( int index , Object element , JsonConfig jsonConfig ) { if ( jsonConfig . isEventTriggeringEnabled ( ) ) { for ( Iterator listeners = jsonConfig . getJsonEventListeners ( ) . iterator ( ) ; listeners . hasNext ( ) ; ) { JsonEventListener listener = ( JsonEventListener ) listeners . next ( ) ; try { listener . onElementAdded ( index , element ) ; } catch ( RuntimeException e ) { log . warn ( e ) ; } } } }
Fires an element added event .