com.google.gwt.uibinder.rebind.XMLElement.consumeInnerText()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中com.google.gwt.uibinder.rebind.XMLElement.consumeInnerText()方法的一些代码示例,展示了XMLElement.consumeInnerText()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLElement.consumeInnerText()方法的具体详情如下:
包路径:com.google.gwt.uibinder.rebind.XMLElement
类名称:XMLElement
方法名:consumeInnerText

XMLElement.consumeInnerText介绍

[英]Refines #consumeInnerTextEscapedAsHtmlStringLiteral(Interpreter) to handle PostProcessingInterpreter.
[中]细化#ConsumerInnerTextEscapeDashtmlStringLiteral(解释器)以处理后处理解释程序。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

private String handleHasTextPlaceholder(XMLElement elem, String name,
  String idHolder) throws UnableToCompleteException {
 idIsHasText.add(idHolder);
 String openPlaceholder = genOpenTag(elem, name, idHolder);
 String body =
   elem.consumeInnerText(new TextPlaceholderInterpreter(uiWriter,
     message));
 String bodyToken = tokenator.nextToken(body);
 String closePlaceholder = genCloseTag(name);
 return openPlaceholder + bodyToken + closePlaceholder;
}

代码示例来源:origin: com.google.gwt/gwt-servlet

private String consumeAsTextMessage(XMLElement elem, MessagesWriter messages)
   throws UnableToCompleteException {
  if (!elem.hasChildNodes()) {
   writer.die(elem, "Empty message");
  }

  MessageWriter message = messages.newMessage(elem);
  PlaceholderInterpreter interpreter =
    new TextPlaceholderInterpreter(writer, message);
  message.setDefaultMessage(elem.consumeInnerText(interpreter));
  return messages.declareMessage(message);
 }
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

private String handleHasTextPlaceholder(XMLElement elem, String name,
  String idHolder) throws UnableToCompleteException {
 idIsHasText.add(idHolder);
 String openPlaceholder = genOpenTag(elem, name, idHolder);
 String body =
   elem.consumeInnerText(new TextPlaceholderInterpreter(uiWriter,
     message));
 String bodyToken = tokenator.nextToken(body);
 String closePlaceholder = genCloseTag(name);
 return openPlaceholder + bodyToken + closePlaceholder;
}

代码示例来源:origin: net.wetheinter/gwt-user

private String handleHasTextPlaceholder(XMLElement elem, String name,
  String idHolder) throws UnableToCompleteException {
 idIsHasText.add(idHolder);
 String openPlaceholder = genOpenTag(elem, name, idHolder);
 String body =
   elem.consumeInnerText(new TextPlaceholderInterpreter(uiWriter,
     message));
 String bodyToken = tokenator.nextToken(body);
 String closePlaceholder = genCloseTag(name);
 return openPlaceholder + bodyToken + closePlaceholder;
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

private String consumeAsTextMessage(XMLElement elem, MessagesWriter messages)
   throws UnableToCompleteException {
  if (!elem.hasChildNodes()) {
   writer.die(elem, "Empty message");
  }

  MessageWriter message = messages.newMessage(elem);
  PlaceholderInterpreter interpreter =
    new TextPlaceholderInterpreter(writer, message);
  message.setDefaultMessage(elem.consumeInnerText(interpreter));
  return messages.declareMessage(message);
 }
}

代码示例来源:origin: net.wetheinter/gwt-user

private String consumeAsTextMessage(XMLElement elem, MessagesWriter messages)
   throws UnableToCompleteException {
  if (!elem.hasChildNodes()) {
   writer.die(elem, "Empty message");
  }

  MessageWriter message = messages.newMessage(elem);
  PlaceholderInterpreter interpreter =
    new TextPlaceholderInterpreter(writer, message);
  message.setDefaultMessage(elem.consumeInnerText(interpreter));
  return messages.declareMessage(message);
 }
}

相关文章

XMLElement类方法