com.google.gwt.user.client.ui.CheckBox.getName()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(141)

本文整理了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

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;
}

相关文章