public void setPersonId ( int personId ) { person = repository . getPersonById ( personId ) ; StringBinding salutationBinding = Bindings . when ( person . genderProperty ( ) . isEqualTo ( Gender . NOT_SPECIFIED ) ) . then ( "Herr/Frau/* " ) . otherwise ( Bindings . when ( person . genderProperty ( ) . isEqualTo ( Gender . MALE ) ) . then ( "Herr " ) . otherwise ( "Frau " ) ) ; welcomeString . unbind ( ) ; welcomeString . bind ( Bindings . concat ( "Willkommen " , salutationBinding , person . firstNameProperty ( ) , " " , person . lastNameProperty ( ) ) ) ; }
Set Person id for the screen