protected void onBaseEntityEvent ( final BaseUIEntityEvent < T > baseEntityEvent ) { final BaseEntityEventType eventType = baseEntityEvent . getEventType ( ) ; if ( BaseEntityEventType . SELECTED_ENTITY == eventType || BaseEntityEventType . UPDATED_ENTITY == eventType || BaseEntityEventType . REMOVE_ENTITY == eventType ) { UI . getCurrent ( ) . access ( ( ) -> populateData ( baseEntityEvent . getEntity ( ) ) ) ; } else if ( BaseEntityEventType . MINIMIZED == eventType ) { UI . getCurrent ( ) . access ( ( ) -> setVisible ( true ) ) ; } else if ( BaseEntityEventType . MAXIMIZED == eventType ) { UI . getCurrent ( ) . access ( ( ) -> setVisible ( false ) ) ; } }
Default implementation to handle an entity event .