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.

PopupViewCaption.java 861B

12345678910111213141516171819202122232425262728293031
  1. package com.vaadin.tests.components.popupview;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.tests.components.AbstractReindeerTestUI;
  4. import com.vaadin.ui.FormLayout;
  5. import com.vaadin.ui.Label;
  6. import com.vaadin.ui.PopupView;
  7. public class PopupViewCaption extends AbstractReindeerTestUI {
  8. @Override
  9. protected void setup(VaadinRequest request) {
  10. FormLayout layout = new FormLayout();
  11. addComponent(layout);
  12. Label label = new Label("Label");
  13. PopupView popup = new PopupView("Popup short text", label);
  14. popup.setCaption("Popup Caption:");
  15. layout.addComponent(popup);
  16. }
  17. @Override
  18. protected String getTestDescription() {
  19. return "Caption for popup view should be shown by layout";
  20. }
  21. @Override
  22. protected Integer getTicketNumber() {
  23. return 10618;
  24. }
  25. }