public void populateTotalTargets ( final Long totalTargets ) { if ( totalTargets == null ) { totalTargetsLabel . setVisible ( false ) ; } else { totalTargetsLabel . setVisible ( true ) ; totalTargetsLabel . setValue ( getTotalTargetMessage ( totalTargets ) ) ; } }
Displays the total targets or hides the label when null is supplied .