本文整理了Java中com.vaadin.ui.Grid.setBodyRowHeight()
方法的一些代码示例,展示了Grid.setBodyRowHeight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Grid.setBodyRowHeight()
方法的具体详情如下:
包路径:com.vaadin.ui.Grid
类名称:Grid
方法名:setBodyRowHeight
[英]Sets the height of a body row. If -1 (default), the row height is calculated based on the theme for an empty row before the Grid is displayed.
[中]设置正文行的高度。如果为-1(默认值),则在显示网格之前,将根据空行的主题计算行高。
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Sets the height of body, header and footer rows. If -1 (default), the row
* height is calculated based on the theme for an empty row before the Grid
* is displayed.
* <p>
* Note that all header, body and footer rows get the same height if
* explicitly set. In automatic mode, each section is calculated separately
* based on an empty row of that type.
*
* @see #setBodyRowHeight(double)
* @see #setHeaderRowHeight(double)
* @see #setFooterRowHeight(double)
*
* @param rowHeight
* The height of a row in pixels or -1 for automatic calculation
*/
public void setRowHeight(double rowHeight) {
setBodyRowHeight(rowHeight);
setHeaderRowHeight(rowHeight);
setFooterRowHeight(rowHeight);
}
代码示例来源:origin: com.haulmont.cuba/cuba-web
@Override
public void setBodyRowHeight(double rowHeight) {
component.setBodyRowHeight(rowHeight);
}
代码示例来源:origin: com.holon-platform.vaadin/holon-vaadin
/**
* Set the row height of the internal grid body section.
* @param rowHeight the row height to set
*/
public void setBodyRowHeight(double rowHeight) {
getGrid().setBodyRowHeight(rowHeight);
}
内容来源于网络,如有侵权,请联系作者删除!