本文整理了Java中com.vaadin.ui.Grid.asSingleSelect()
方法的一些代码示例,展示了Grid.asSingleSelect()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Grid.asSingleSelect()
方法的具体详情如下:
包路径:com.vaadin.ui.Grid
类名称:Grid
方法名:asSingleSelect
[英]Use this grid as a single select in Binder.
Throws IllegalStateException if the grid is not using a SingleSelectionModel.
[中]将此网格用作活页夹中的单个选择。
如果网格未使用SingleSelectionModel,则引发IllegalStateException。
代码示例来源:origin: com.vaadin/vaadin-server
@Override
protected boolean isReadOnly() {
SelectionMode selectionMode = getSelectionMode();
if (SelectionMode.SINGLE.equals(selectionMode)) {
return asSingleSelect().isReadOnly();
}
if (SelectionMode.MULTI.equals(selectionMode)) {
return asMultiSelect().isReadOnly();
}
return false;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
protected void setReadOnly(boolean readOnly) {
SelectionMode selectionMode = getSelectionMode();
if (SelectionMode.SINGLE.equals(selectionMode)) {
asSingleSelect().setReadOnly(readOnly);
} else if (SelectionMode.MULTI.equals(selectionMode)) {
asMultiSelect().setReadOnly(readOnly);
}
}
代码示例来源:origin: com.haulmont.cuba/cuba-web
protected T getSelectedFolder() {
return getParent().asSingleSelect().getValue();
}
内容来源于网络,如有侵权,请联系作者删除!