本文整理了Java中com.google.gwt.uibinder.rebind.XMLElement.consumeStringArrayAttribute()
方法的一些代码示例,展示了XMLElement.consumeStringArrayAttribute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLElement.consumeStringArrayAttribute()
方法的具体详情如下:
包路径:com.google.gwt.uibinder.rebind.XMLElement
类名称:XMLElement
方法名:consumeStringArrayAttribute
[英]Consumes the named attribute and parses it to an array of String expressions. The strings in the attribute may be comma or space separated (or a mix of both).
[中]使用命名属性并将其解析为字符串表达式数组。属性中的字符串可以是逗号分隔的或空格分隔的(或两者的混合)。
代码示例来源:origin: com.google.gwt/gwt-servlet
String[] extraStyleNames = elem.consumeStringArrayAttribute("addStyleNames");
for (String s : extraStyleNames) {
writer.addStatement("%s.addStyleName(%s);", fieldName, s);
extraStyleNames = elem.consumeStringArrayAttribute("addStyleDependentNames");
for (String s : extraStyleNames) {
writer.addStatement("%s.addStyleDependentName(%s);", fieldName, s);
代码示例来源:origin: com.google.gwt/gwt-servlet
if (ownerFieldClass.getRawType().findMethod(addMethod, new JType[]{stringType}) != null) {
String n = attribute.getName();
String[] value = elem.consumeStringArrayAttribute(n);
代码示例来源:origin: org.vectomatic/lib-gwt-svg
if (URI_VECTOMATIC.equals(child.getNamespaceUri()) && TAG_STYLE_CHANGE.equals(child.getLocalName())) {
styleChanges.add((child.hasAttribute(ATTR_CLASS_NAMES))
? child.consumeStringArrayAttribute(ATTR_CLASS_NAMES)
: new String[0]);
} else {
代码示例来源:origin: laaglu/lib-gwt-svg
if (URI_VECTOMATIC.equals(child.getNamespaceUri()) && TAG_STYLE_CHANGE.equals(child.getLocalName())) {
styleChanges.add((child.hasAttribute(ATTR_CLASS_NAMES))
? child.consumeStringArrayAttribute(ATTR_CLASS_NAMES)
: new String[0]);
} else {
代码示例来源:origin: net.wetheinter/gwt-user
String[] extraStyleNames = elem.consumeStringArrayAttribute("addStyleNames");
for (String s : extraStyleNames) {
writer.addStatement("%s.addStyleName(%s);", fieldName, s);
extraStyleNames = elem.consumeStringArrayAttribute("addStyleDependentNames");
for (String s : extraStyleNames) {
writer.addStatement("%s.addStyleDependentName(%s);", fieldName, s);
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
String[] extraStyleNames = elem.consumeStringArrayAttribute("addStyleNames");
for (String s : extraStyleNames) {
writer.addStatement("%s.addStyleName(%s);", fieldName, s);
extraStyleNames = elem.consumeStringArrayAttribute("addStyleDependentNames");
for (String s : extraStyleNames) {
writer.addStatement("%s.addStyleDependentName(%s);", fieldName, s);
代码示例来源:origin: net.wetheinter/gwt-user
if (ownerFieldClass.getRawType().findMethod(addMethod, new JType[]{stringType}) != null) {
String n = attribute.getName();
String[] value = elem.consumeStringArrayAttribute(n);
内容来源于网络,如有侵权,请联系作者删除!