本文整理了Java中com.vaadin.ui.Grid.setReadOnly()
方法的一些代码示例,展示了Grid.setReadOnly()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Grid.setReadOnly()
方法的具体详情如下:
包路径:com.vaadin.ui.Grid
类名称:Grid
方法名:setReadOnly
暂无
代码示例来源:origin: com.vaadin/vaadin-server
@Override
protected void doReadDesign(Element design, DesignContext context) {
Attributes attrs = design.attributes();
if (design.hasAttr(DECLARATIVE_DATA_ITEM_TYPE)) {
String itemType = design.attr(DECLARATIVE_DATA_ITEM_TYPE);
setBeanType(itemType);
}
if (attrs.hasKey("selection-mode")) {
setSelectionMode(DesignAttributeHandler.readAttribute(
"selection-mode", attrs, SelectionMode.class));
}
Attributes attr = design.attributes();
if (attr.hasKey("selection-allowed")) {
setReadOnly(DesignAttributeHandler
.readAttribute("selection-allowed", attr, Boolean.class));
}
if (attrs.hasKey("rows")) {
setHeightByRows(DesignAttributeHandler.readAttribute("rows", attrs,
double.class));
}
readStructure(design, context);
// Read frozen columns after columns are read.
if (attrs.hasKey("frozen-columns")) {
setFrozenColumnCount(DesignAttributeHandler
.readAttribute("frozen-columns", attrs, int.class));
}
}
代码示例来源:origin: jpos/jPOS-EE
@Override
public void setReadOnly(boolean readOnly) {
super.setReadOnly(readOnly);
if (getColumn("delete") != null)
getColumn("delete").setHidden(readOnly);
}
内容来源于网络,如有侵权,请联系作者删除!