12345678910111213141516171819202122232425262728293031 |
- package com.vaadin.tests.components.popupview;
-
- import com.vaadin.server.VaadinRequest;
- import com.vaadin.tests.components.AbstractReindeerTestUI;
- import com.vaadin.ui.FormLayout;
- import com.vaadin.ui.Label;
- import com.vaadin.ui.PopupView;
-
- public class PopupViewCaption extends AbstractReindeerTestUI {
-
- @Override
- protected void setup(VaadinRequest request) {
- FormLayout layout = new FormLayout();
- addComponent(layout);
- Label label = new Label("Label");
- PopupView popup = new PopupView("Popup short text", label);
- popup.setCaption("Popup Caption:");
- layout.addComponent(popup);
- }
-
- @Override
- protected String getTestDescription() {
- return "Caption for popup view should be shown by layout";
- }
-
- @Override
- protected Integer getTicketNumber() {
- return 10618;
- }
-
- }
|