本文整理了Java中com.google.gwt.uibinder.rebind.XMLElement.consumeBooleanAttribute()
方法的一些代码示例,展示了XMLElement.consumeBooleanAttribute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLElement.consumeBooleanAttribute()
方法的具体详情如下:
包路径:com.google.gwt.uibinder.rebind.XMLElement
类名称:XMLElement
方法名:consumeBooleanAttribute
[英]Convenience method for parsing the named attribute as a boolean value or reference.
[中]将命名属性解析为布尔值或引用的方便方法。
代码示例来源:origin: com.google.gwt/gwt-servlet
boolean custom = isCustomWidget(writer, type);
if (!custom) {
String autoHide = elem.consumeBooleanAttribute("autoHide", false);
String modal = elem.consumeBooleanAttribute("modal", true);
代码示例来源:origin: com.google.gwt/gwt-servlet
String vertical = elem.consumeBooleanAttribute("vertical");
writer.setFieldInitializerAsConstructor(fieldName, vertical);
代码示例来源:origin: com.jhickman/gxt-uibinder
public void parse(XMLElement elem, String fieldName, JClassType type, UiBinderWriter writer) throws UnableToCompleteException {
String checkedValue = elem.consumeBooleanAttribute("checked", false);
writer.addStatement("%s.setChecked(%s);", fieldName, checkedValue);
}
}
代码示例来源:origin: com.jhickman/gxt-uibinder
@Override
public void parse(XMLElement elem, String fieldName, JClassType type, UiBinderWriter writer) throws UnableToCompleteException {
String toggleValue = elem.consumeBooleanAttribute("toggle");
if (toggleValue != null) {
writer.addStatement("%s.toggle(%s);", fieldName, toggleValue);
}
}
代码示例来源:origin: org.vectomatic/lib-gwt-svg
String value = childElem.consumeBooleanAttribute(ATTR_VALIDATED);
validated = Boolean.valueOf(value);
代码示例来源:origin: laaglu/lib-gwt-svg
String value = childElem.consumeBooleanAttribute(ATTR_VALIDATED);
validated = Boolean.valueOf(value);
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
boolean custom = isCustomWidget(writer, type);
if (!custom) {
String autoHide = elem.consumeBooleanAttribute("autoHide", false);
String modal = elem.consumeBooleanAttribute("modal", true);
代码示例来源:origin: net.wetheinter/gwt-user
boolean custom = isCustomWidget(writer, type);
if (!custom) {
String autoHide = elem.consumeBooleanAttribute("autoHide", false);
String modal = elem.consumeBooleanAttribute("modal", true);
代码示例来源:origin: org.vectomatic/lib-gwt-svg
boolean validated = true;
if (elem.hasAttribute(ATTR_VALIDATED)) {
String value = elem.consumeBooleanAttribute(ATTR_VALIDATED);
validated = Boolean.valueOf(value);
代码示例来源:origin: laaglu/lib-gwt-svg
boolean validated = true;
if (elem.hasAttribute(ATTR_VALIDATED)) {
String value = elem.consumeBooleanAttribute(ATTR_VALIDATED);
validated = Boolean.valueOf(value);
代码示例来源:origin: net.wetheinter/gwt-user
String vertical = elem.consumeBooleanAttribute("vertical");
writer.setFieldInitializerAsConstructor(fieldName, vertical);
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
String vertical = elem.consumeBooleanAttribute("vertical");
writer.setFieldInitializerAsConstructor(fieldName, vertical);
内容来源于网络,如有侵权,请联系作者删除!