void () { myPasswordLabel.setVisible(myRepository.isUseHttpAuthentication()); myPasswordText.setVisible(myRepository.isUseHttpAuthentication()); myUsernameLabel.setVisible(myRepository.isUseHttpAuthentication()); myUserNameText.setVisible(myRepository.isUseHttpAuthentication()); myAPIKeyLabel.setVisible(!myRepository.isUseHttpAuthentication()); myAPIKey.setVisible(!myRepository.isUseHttpAuthentication()); }