12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- package com.vaadin.tests.components.table;
-
- import com.vaadin.server.VaadinRequest;
- import com.vaadin.tests.components.AbstractReindeerTestUI;
- import com.vaadin.ui.Button;
- import com.vaadin.ui.Component;
- import com.vaadin.ui.Label;
- import com.vaadin.ui.PopupView;
- import com.vaadin.ui.VerticalLayout;
- import com.vaadin.v7.ui.Table;
-
- public class PopupViewInTable extends AbstractReindeerTestUI {
-
- @Override
- protected void setup(VaadinRequest request) {
- Table t = new Table();
- t.addContainerProperty("text", String.class, "");
- t.addContainerProperty("pv", Component.class, null);
- t.addItem(new Object[] { "Foo", createPopupView() }, "foo");
- addComponent(t);
- }
-
- private PopupView createPopupView() {
- PopupView pv = new PopupView("Click me", createContent());
- return pv;
- }
-
- private Component createContent() {
- VerticalLayout vl = new VerticalLayout(new Label("Hello"),
- new Button("World"));
- return vl;
- }
-
- @Override
- protected String getTestDescription() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- protected Integer getTicketNumber() {
- // TODO Auto-generated method stub
- return null;
- }
-
- }
|