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.

GridWithoutRenderer.java 694B

12345678910111213141516171819202122
  1. package com.vaadin.v7.tests.components.grid;
  2. import com.vaadin.server.UserError;
  3. import com.vaadin.server.VaadinRequest;
  4. import com.vaadin.tests.components.AbstractTestUI;
  5. import com.vaadin.tests.util.PersonContainer;
  6. import com.vaadin.ui.Button;
  7. import com.vaadin.v7.ui.Grid;
  8. @SuppressWarnings("deprecation")
  9. public class GridWithoutRenderer extends AbstractTestUI {
  10. @Override
  11. protected void setup(VaadinRequest request) {
  12. Grid grid = new Grid();
  13. grid.setContainerDataSource(PersonContainer.createWithTestData());
  14. addComponent(grid);
  15. addComponent(new Button("Add error",
  16. e -> grid.setComponentError(new UserError("fail"))));
  17. }
  18. }