本文整理了Java中com.google.gwt.user.client.ui.CheckBox.setFormValue()
方法的一些代码示例,展示了CheckBox.setFormValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setFormValue()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.CheckBox
类名称:CheckBox
方法名:setFormValue
[英]Set the value property on the input element that backs this widget. This is the value that will be associated with the CheckBox's name and submitted to the server if a FormPanel that holds it is submitted and the box is checked.
Don't confuse this with #setValue, which actually checks and unchecks the box.
[中]在支持此小部件的输入元素上设置value属性。如果提交了保存复选框的FormPanel并选中该复选框,则该值将与复选框的名称关联并提交到服务器。
不要将其与#setValue混淆,后者实际上会选中和取消选中该框。
代码示例来源:origin: com.google.gwt/gwt-servlet
setValue(checked);
setEnabled(enabled);
setFormValue(formValue);
代码示例来源:origin: bedatadriven/activityinfo
private CheckBox createControl(String groupId, String choiceId, String label, Cardinality cardinality) {
final CheckBox checkBox;
if (cardinality == Cardinality.SINGLE) {
checkBox = new RadioButton(groupId, label);
} else {
checkBox = new CheckBox(label);
}
checkBox.setFormValue(choiceId);
return checkBox;
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
/** {@inheritDoc} */
@Override
public void submit() {
overwrite.setFormValue(overwrite.getValue().toString());
submitForm.submit();
btnUpload.setEnabled(false);
}
代码示例来源:origin: bedatadriven/activityinfo
private CheckBox createControl(EnumItem instance) {
CheckBox checkBox;
if (enumType.getCardinality() == Cardinality.SINGLE) {
checkBox = new org.activityinfo.ui.client.widget.RadioButton(groupName, label(instance.getLabel()));
} else {
checkBox = new org.activityinfo.ui.client.widget.CheckBox(label(instance.getLabel()));
}
checkBox.setFormValue(instance.getId().asString());
checkBox.getElement().setAttribute("data-id", instance.getId().asString());
controls.add(checkBox);
return checkBox;
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
setValue(checked);
setEnabled(enabled);
setFormValue(formValue);
代码示例来源:origin: net.wetheinter/gwt-user
setValue(checked);
setEnabled(enabled);
setFormValue(formValue);
内容来源于网络,如有侵权,请联系作者删除!