You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CustomizedLoginFormUI.java 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.vaadin.tests.components.loginform;
  2. import java.util.Optional;
  3. import com.vaadin.server.VaadinRequest;
  4. public class CustomizedLoginFormUI extends LoginFormUI {
  5. @Override
  6. protected void setup(VaadinRequest request) {
  7. super.setup(request);
  8. }
  9. @Override
  10. protected Optional<String> getUsernameCaption() {
  11. return Optional.of("Identifiant");
  12. }
  13. @Override
  14. protected Optional<String> getPasswordCaption() {
  15. return Optional.of("Mot de passe");
  16. }
  17. @Override
  18. protected Optional<String> getLoginCaption() {
  19. return Optional.of("Se connecter");
  20. }
  21. @Override
  22. protected String getTestDescription() {
  23. return "Customization of the captions on the LoginForm component. Three login forms should be visible (undefined height, undefined width, defined height and width). Entering a username+password in a login form and clicking 'login' should replace the login form with a label telling the user name as password. Also a logout button should then be shown and pressing that takes the user back to the original screen with the LoginForm";
  24. }
  25. @Override
  26. protected Integer getTicketNumber() {
  27. return 5226;
  28. }
  29. }