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.

GridPopupView.java 742B

1234567891011121314151617181920212223242526
  1. package com.vaadin.tests.components.grid;
  2. import com.vaadin.annotations.Widgetset;
  3. import com.vaadin.server.VaadinRequest;
  4. import com.vaadin.tests.components.AbstractTestUI;
  5. import com.vaadin.ui.Grid;
  6. import com.vaadin.ui.PopupView;
  7. @Widgetset("com.vaadin.DefaultWidgetSet")
  8. public class GridPopupView extends AbstractTestUI {
  9. @Override
  10. protected void setup(VaadinRequest vaadinRequest) {
  11. Grid<String> grid = new Grid<>();
  12. grid.setItems("Foo", "Bar", "Baz");
  13. PopupView popupView = new PopupView(
  14. "Show grid (click me multiple times)", grid);
  15. popupView.setHideOnMouseOut(false);
  16. grid.addColumn(str -> str).setCaption("Something");
  17. addComponent(popupView);
  18. }
  19. }