public void registerDetails ( final AbstractGrid < ? > . DetailsSupport details ) { grid . addSelectionListener ( event -> { final Long masterId = ( Long ) event . getSelected ( ) . stream ( ) . findFirst ( ) . orElse ( null ) ; details . populateMasterDataAndRecalculateContainer ( masterId ) ; } ) ; }
Registers the selection of this grid as master for another grid that displays the details .