Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

DateFieldPopupPosition.java 1012B

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.vaadin.tests.components.datefield;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.tests.components.AbstractTestUI;
  4. import com.vaadin.ui.DateField;
  5. import com.vaadin.ui.HorizontalLayout;
  6. import com.vaadin.ui.Label;
  7. /**
  8. * Test UI for date field Popup calendar.
  9. *
  10. * @author Vaadin Ltd
  11. */
  12. public abstract class DateFieldPopupPosition extends AbstractTestUI {
  13. @Override
  14. protected void setup(VaadinRequest request) {
  15. HorizontalLayout layout = new HorizontalLayout();
  16. addComponent(layout);
  17. Label gap = new Label();
  18. gap.setWidth(250, Unit.PIXELS);
  19. layout.addComponent(gap);
  20. DateField field = new DateField();
  21. layout.addComponent(field);
  22. }
  23. @Override
  24. protected Integer getTicketNumber() {
  25. return 14757;
  26. }
  27. @Override
  28. protected String getTestDescription() {
  29. return "Calendar popup should not placed on the top of text field when "
  30. + "there is no space on bottom.";
  31. }
  32. }