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

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

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

Table.removeContainerProperty介绍

[英]Removes a Property specified by the given Property ID from the Container.
[中]从容器中移除给定属性ID指定的属性。

代码示例

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

@Override
public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException {
  if (editableColumns != null) {
    editableColumns.remove(propertyId);
  }
  if (isAggregatable() && items instanceof AggregationContainer) {
    removeContainerPropertyAggregation(propertyId);
  }
  boolean removed = super.removeContainerProperty(propertyId);
  if (removed) {
    resetPageBuffer();
  }
  return removed;
}

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

@Override
public void removeColumn(Table.Column column) {
  if (column == null) {
    return;
  }
  component.removeContainerProperty(column.getId());
  columns.remove(column.getId());
  columnsOrder.remove(column);
  // vaadin8 it seems that it is not required
  if (!(component.getContainerDataSource() instanceof com.vaadin.v7.data.Container.ItemSetChangeNotifier)) {
    component.refreshRowCache();
  }
  column.setOwner(null);
}

相关文章

微信公众号

最新文章

更多

Table类方法