本文整理了Java中com.google.gwt.user.client.ui.CheckBox.getName()
方法的一些代码示例,展示了CheckBox.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.getName()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.CheckBox
类名称:CheckBox
方法名:getName
暂无
代码示例来源:origin: com.googlecode.gwt-test-utils/gwt-test-utils
/**
* Verifies that the actual {@link CheckBox} name is equal to the given one.
*
* @param expected the given name to compare the actual name to.
* @return this assertion object.
* @throws AssertionError if the actual name value is not equal to the given one.
* @see CheckBox#getName()
*/
public S nameEquals(String expected) {
String name = actual.getName();
if (areEqual(name, expected))
return myself;
throw propertyComparisonFailed("name", name, expected);
}
代码示例来源:origin: gwt-test-utils/gwt-test-utils
/**
* Verifies that the actual {@link CheckBox} name is equal to the given one.
*
* @param expected the given name to compare the actual name to.
* @return this assertion object.
* @throws AssertionError if the actual name value is not equal to the given one.
* @see CheckBox#getName()
*/
public S nameEquals(String expected) {
String name = actual.getName();
if (areEqual(name, expected))
return myself;
throw propertyComparisonFailed("name", name, expected);
}
代码示例来源:origin: sk.seges.acris/acris-binding
@Override
public Binding addBinding(String sourceProperty, Object targetWidget, String targetProperty, Converter<?, ?> converter, Validator<?> validator) {
if(targetWidget instanceof CheckBox) {
String group = ((CheckBox)targetWidget).getName();
Set<BindingFieldInfo> set = tmpCheckBoxGroups.get(group);
if(set == null) {
set = new HashSet<BindingFieldInfo>();
tmpCheckBoxGroups.put(group, set);
}
set.add(addBindingFieldInfo(sourceProperty, targetWidget, targetProperty));
return null;
}
addBindingFieldInfo(sourceProperty, targetWidget, targetProperty);
AutoBinding binding = createBinding(sourceProperty, targetWidget, targetProperty);
if(converter != null) {
binding.setConverter(converter);
}
if(validator != null) {
binding.setValidator(validator);
}
rootBinding.addBinding(binding);
return binding;
}
内容来源于网络,如有侵权,请联系作者删除!