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.

GridEditorFrozenColumnsUI.java 680B

12345678910111213141516171819202122232425262728293031
  1. package com.vaadin.tests.components.grid;
  2. import com.vaadin.annotations.Theme;
  3. import com.vaadin.tests.util.Person;
  4. import com.vaadin.ui.Grid;
  5. @Theme("valo")
  6. public class GridEditorFrozenColumnsUI extends GridEditorUI {
  7. @Override
  8. protected Grid<Person> createGrid() {
  9. Grid<Person> grid = super.createGrid();
  10. grid.setFrozenColumnCount(2);
  11. grid.setWidth("600px");
  12. grid.setHeight("100%");
  13. return grid;
  14. }
  15. @Override
  16. protected Integer getTicketNumber() {
  17. return 16727;
  18. }
  19. @Override
  20. protected String getTestDescription() {
  21. return "Frozen columns should also freeze cells in editor.";
  22. }
  23. }