public void setValue ( final Duration tenantDuration ) { if ( tenantDuration == null ) { // no tenant specific configuration checkBox . setValue ( false ) ; durationField . setDuration ( globalDuration ) ; durationField . setEnabled ( false ) ; return ; } checkBox . setValue ( true ) ; durationField . setDuration ( tenantDuration ) ; durationField . setEnabled ( true ) ; }
Set the value of the duration field