Guest User

Untitled

a guest
Aug 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. setColumnWidth() doesn't seem to work
  2. simCardTable.setColumnWidth(actionColumn, 135);
  3.  
  4. final ColumnGenerator generator = new ColumnGenerator() {
  5. private static final long serialVersionUID = 1L;
  6.  
  7. @Override
  8. public Component generateCell(Table source, final Object itemId, Object columnId) {
  9. final HorizontalLayout layout = new HorizontalLayout();
  10. layout.setSizeFull();
  11.  
  12. Embedded icon1 = new Embedded();
  13. Embedded icon2 = new Embedded();
  14. Embedded icon3 = new Embedded();
  15.  
  16. //Add some themeresource to embedded components
  17.  
  18. //Do some listners to this icons
  19.  
  20. layout.addComponent(icon1);
  21. layout.addComponent(icon2);
  22. layout.addComponent(icon3);
  23.  
  24. //Set column with
  25. setColumnWidth(columnId, 100);
  26.  
  27. return layout;
  28. }
  29. };
Add Comment
Please, Sign In to add comment