com.vaadin.ui.Table.setStyleName()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(315)

本文整理了Java中com.vaadin.ui.Table.setStyleName()方法的一些代码示例,展示了Table.setStyleName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setStyleName()方法的具体详情如下:
包路径:com.vaadin.ui.Table
类名称:Table
方法名:setStyleName

Table.setStyleName介绍

暂无

代码示例

代码示例来源:origin: org.opencms/opencms-core

  1. /**
  2. * @see org.opencms.ui.dialogs.history.diff.I_CmsDiffProvider#diff(org.opencms.file.CmsObject, org.opencms.gwt.shared.CmsHistoryResourceBean, org.opencms.gwt.shared.CmsHistoryResourceBean)
  3. */
  4. public Optional<Component> diff(CmsObject cms, CmsHistoryResourceBean v1, CmsHistoryResourceBean v2)
  5. throws CmsException {
  6. List<CmsAttributeComparison> attrCompare = getDifferences(cms, v1, v2);
  7. if (attrCompare.isEmpty()) {
  8. return Optional.absent();
  9. }
  10. List<CmsPropertyCompareBean> compareBeans = Lists.newArrayList();
  11. for (CmsAttributeComparison comp : attrCompare) {
  12. compareBeans.add(new CmsPropertyCompareBean(comp));
  13. }
  14. CmsBeanTableBuilder<CmsPropertyCompareBean> builder = CmsBeanTableBuilder.newInstance(
  15. CmsPropertyCompareBean.class,
  16. A_CmsUI.get().getDisplayType().toString());
  17. builder.setMacroResolver(new CmsVersionMacroResolver(v1, v2));
  18. Table table = builder.buildTable(compareBeans);
  19. table.setSortEnabled(false);
  20. table.setWidth("100%");
  21. table.setPageLength(Math.min(12, compareBeans.size()));
  22. table.setStyleName(COMPARE_TABLE_MARKER);
  23. VerticalLayout vl = new VerticalLayout();
  24. vl.setMargin(true);
  25. vl.addComponent(table);
  26. Panel panel = new Panel(getCaption());
  27. panel.setContent(vl);
  28. return Optional.fromNullable((Component)panel);
  29. }

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

  1. this.systemEventTable.setColumnExpandRatio("Timestamp", .15f);
  2. this.systemEventTable.setStyleName("wordwrap-table");

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

  1. systemEventTable.setColumnExpandRatio("Timestamp", .15f);
  2. systemEventTable.setStyleName("wordwrap-table");

相关文章