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

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

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

Table.setCellStyleGenerator介绍

[英]Set cell style generator for Table.
[中]设置表格的单元格样式生成器。

代码示例

代码示例来源:origin: OpenNMS/opennms

/**
 * Call this method before any of the {@link SelectionNotifier} methods to ensure
 * that the {@link SelectionListener} instances are registered with all of the
 * {@link ColumnGenerator} classes that also implement {@link SelectionNotifier}.
 */
@Override
public void setCellStyleGenerator(CellStyleGenerator generator) {
  super.setCellStyleGenerator(generator);
}

代码示例来源:origin: OpenNMS/opennms

table.setCellStyleGenerator((Table.CellStyleGenerator) (source, itemId, propertyId) -> {
  if (propertyId != null && propertyId.equals(explanation.getStatus())) {
    return "selected";

代码示例来源:origin: com.haulmont.cuba/cuba-web

componentComposition.addComponent(component);
component.setCellStyleGenerator(createStyleGenerator());
component.addColumnCollapseListener(this::handleColumnCollapsed);

相关文章

微信公众号

最新文章

更多

Table类方法