本文整理了Java中com.vaadin.ui.Grid.getFrozenColumnCount()
方法的一些代码示例,展示了Grid.getFrozenColumnCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Grid.getFrozenColumnCount()
方法的具体详情如下:
包路径:com.vaadin.ui.Grid
类名称:Grid
方法名:getFrozenColumnCount
[英]Gets the number of frozen columns in this grid. 0 means that no data columns will be frozen, but the built-in selection checkbox column will still be frozen if it's in use. -1 means that not even the selection column is frozen.
NOTE: this count includes Column#isHidden() in the count.
[中]获取此网格中冻结的列数。0表示不会冻结任何数据列,但内置的选择复选框列在使用时仍将冻结-1表示即使选择列也没有冻结。
*注:*此计数包括计数中的列#ishiden()。
代码示例来源:origin: com.vaadin/vaadin-server
if (displayIndex < getFrozenColumnCount()) {
setFrozenColumnCount(getFrozenColumnCount() - 1);
代码示例来源:origin: com.vaadin/vaadin-server
@Override
protected void doWriteDesign(Element design, DesignContext designContext) {
Attributes attr = design.attributes();
if (this.beanType != null) {
design.attr(DECLARATIVE_DATA_ITEM_TYPE,
this.beanType.getCanonicalName());
}
DesignAttributeHandler.writeAttribute("selection-allowed", attr,
isReadOnly(), false, Boolean.class, designContext);
Attributes attrs = design.attributes();
Grid<?> defaultInstance = designContext.getDefaultInstance(this);
DesignAttributeHandler.writeAttribute("frozen-columns", attrs,
getFrozenColumnCount(), defaultInstance.getFrozenColumnCount(),
int.class, designContext);
if (HeightMode.ROW.equals(getHeightMode())) {
DesignAttributeHandler.writeAttribute("rows", attrs,
getHeightByRows(), defaultInstance.getHeightByRows(),
double.class, designContext);
}
SelectionMode mode = getSelectionMode();
if (mode != null) {
DesignAttributeHandler.writeAttribute("selection-mode", attrs, mode,
SelectionMode.SINGLE, SelectionMode.class, designContext);
}
writeStructure(design, designContext);
}
代码示例来源:origin: com.haulmont.cuba/cuba-web
@Override
public int getFrozenColumnCount() {
return component.getFrozenColumnCount();
}
内容来源于网络,如有侵权,请联系作者删除!