本文整理了Java中com.google.gwt.user.client.ui.CheckBox.getFormValue()
方法的一些代码示例,展示了CheckBox.getFormValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.getFormValue()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.CheckBox
类名称:CheckBox
方法名:getFormValue
[英]Returns the value property of the input element that backs this widget. This is the value that will be associated with the CheckBox name and submitted to the server if a FormPanel that holds it is submitted and the box is checked.
Don't confuse this with #getValue, which returns true or false if the widget is checked.
[中]返回支持此小部件的输入元素的value属性。如果提交了保存复选框的FormPanel并选中了复选框,则该值将与复选框名称关联并提交到服务器。
不要将其与#getValue混淆,如果小部件被选中,它将返回true或false。
代码示例来源:origin: com.google.gwt/gwt-servlet
boolean checked = getValue();
boolean enabled = isEnabled();
String formValue = getFormValue();
String uid = inputElem.getId();
String accessKey = inputElem.getAccessKey();
代码示例来源:origin: bedatadriven/activityinfo
private CheckBox controlForId(ResourceId id) {
for (CheckBox checkBox : controls) {
if (checkBox.getFormValue().equals(id.asString())) {
return checkBox;
}
}
throw new IllegalArgumentException(id.asString());
}
代码示例来源:origin: com.googlecode.gwt-test-utils/gwt-test-utils
/**
* Verifies that the actual {@link CheckBox} form value is equal to the given one.
*
* @param expected the given form value to compare the actual form value to.
* @return this assertion object.
* @throws AssertionError if the actual form value is not equal to the given one.
* @see CheckBox#getFormValue()
*/
public S formValueEquals(String expected) {
String formValue = actual.getFormValue();
if (areEqual(formValue, expected))
return myself;
throw propertyComparisonFailed("form value", formValue, expected);
}
代码示例来源:origin: bedatadriven/activityinfo
private ReferenceValue updatedValue() {
final Set<RecordRef> value = Sets.newHashSet();
for (CheckBox control : controls) {
if (control.getValue()) {
value.add(RecordRef.fromQualifiedString(control.getFormValue()));
}
}
return new ReferenceValue(value);
}
代码示例来源:origin: bedatadriven/activityinfo
private EnumValue updatedValue() {
final Set<ResourceId> value = Sets.newHashSet();
for (CheckBox control : controls) {
if (control.getValue()) {
value.add(ResourceId.valueOf(control.getFormValue()));
}
}
return new EnumValue(value);
}
代码示例来源:origin: gwt-test-utils/gwt-test-utils
/**
* Verifies that the actual {@link CheckBox} form value is equal to the given one.
*
* @param expected the given form value to compare the actual form value to.
* @return this assertion object.
* @throws AssertionError if the actual form value is not equal to the given one.
* @see CheckBox#getFormValue()
*/
public S formValueEquals(String expected) {
String formValue = actual.getFormValue();
if (areEqual(formValue, expected))
return myself;
throw propertyComparisonFailed("form value", formValue, expected);
}
代码示例来源:origin: bedatadriven/activityinfo
@Override
public Promise<Void> setValue(ReferenceValue value) {
Set<RecordRef> ids = value.getReferences();
for (CheckBox entry : controls) {
RecordRef ref = RecordRef.fromQualifiedString(entry.getFormValue());
entry.setValue(ids.contains(ref));
}
return Promise.done();
}
代码示例来源:origin: bedatadriven/activityinfo
@Override
public Promise<Void> setValue(EnumValue value) {
for (CheckBox entry : controls) {
entry.setValue(containsIgnoreCase(value.getResourceIds(), entry.getFormValue()));
}
setClearButtonState(value);
return Promise.done();
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
boolean checked = getValue();
boolean enabled = isEnabled();
String formValue = getFormValue();
String uid = inputElem.getId();
String accessKey = inputElem.getAccessKey();
代码示例来源:origin: net.wetheinter/gwt-user
boolean checked = getValue();
boolean enabled = isEnabled();
String formValue = getFormValue();
String uid = inputElem.getId();
String accessKey = inputElem.getAccessKey();
内容来源于网络,如有侵权,请联系作者删除!