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

x33g5p2x  于2022-01-20 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(146)

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

Grid.setHeaderVisible介绍

[英]Sets the visibility of the Header in this Grid.
[中]设置此网格中标题的可见性。

代码示例

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

@Override
public void setHeaderVisible(boolean headerVisible) {
  component.setHeaderVisible(headerVisible);
}

代码示例来源:origin: com.holon-platform.vaadin/holon-vaadin

/**
 * Set whether the listing column headers are visible.
 * @param headersVisible whether the listing column headers are visible
 */
public void setHeadersVisible(boolean headersVisible) {
  getGrid().setHeaderVisible(headersVisible);
}

代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin

/**
 * Set whether the listing column headers are visible.
 * @param headersVisible whether the listing column headers are visible
 */
public void setHeadersVisible(boolean headersVisible) {
  switch (getRenderingMode()) {
  case GRID:
    getGrid().setHeaderVisible(headersVisible);
    break;
  case TABLE:
    getTable().setColumnHeaderMode(
        headersVisible ? ColumnHeaderMode.EXPLICIT_DEFAULTS_ID : ColumnHeaderMode.HIDDEN);
    break;
  default:
    break;
  }
}

代码示例来源:origin: eclipse/hawkbit

private Grid createGrid() {
  final Grid statusGrid = new Grid(uploads);
  statusGrid.addStyleName(SPUIStyleDefinitions.UPLOAD_STATUS_GRID);
  statusGrid.setId(UIComponentIdProvider.UPLOAD_STATUS_POPUP_GRID);
  statusGrid.setSelectionMode(SelectionMode.NONE);
  statusGrid.setHeaderVisible(true);
  statusGrid.setImmediate(true);
  statusGrid.setSizeFull();
  return statusGrid;
}

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

private Grid createGrid() {
  final Grid statusGrid = new Grid(uploads);
  statusGrid.addStyleName(SPUIStyleDefinitions.UPLOAD_STATUS_GRID);
  statusGrid.setId(UIComponentIdProvider.UPLOAD_STATUS_POPUP_GRID);
  statusGrid.setSelectionMode(SelectionMode.NONE);
  statusGrid.setHeaderVisible(true);
  statusGrid.setImmediate(true);
  statusGrid.setSizeFull();
  return statusGrid;
}

相关文章

Grid类方法