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

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

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

XMLElement.clearChildren介绍

暂无

代码示例

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

/**
 * Consumes all child elements, and returns an HTML interpretation of them.
 * Trailing and leading whitespace is trimmed.
 * <p>
 * Each element encountered will be passed to the given Interpreter for
 * possible replacement. Escaping is performed to allow the returned text to
 * serve as a Java string literal used as input to a setInnerHTML call.
 * <p>
 * This call requires an interpreter to make sense of any special children.
 * The odds are you want to use
 * {@link com.google.gwt.uibinder.elementparsers.HtmlInterpreter} for an HTML
 * value, or {@link com.google.gwt.uibinder.elementparsers.TextInterpreter}
 * for text.
 * 
 * @param interpreter Called for each element, expected to return a string
 *          replacement for it, or null if it should be left as is
 */
public String consumeInnerHtml(Interpreter<String> interpreter) throws UnableToCompleteException {
 if (interpreter == null) {
  throw new NullPointerException("interpreter must not be null");
 }
 StringBuffer buf = new StringBuffer();
 GetInnerHtmlVisitor.getEscapedInnerHtml(elem, buf, interpreter, provider);
 clearChildren(elem);
 return buf.toString().trim();
}

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

/**
 * Consumes all child elements, and returns an HTML interpretation of them.
 * Trailing and leading whitespace is trimmed.
 * <p>
 * Each element encountered will be passed to the given Interpreter for
 * possible replacement. Escaping is performed to allow the returned text to
 * serve as a Java string literal used as input to a setInnerHTML call.
 * <p>
 * This call requires an interpreter to make sense of any special children.
 * The odds are you want to use
 * {@link com.google.gwt.uibinder.elementparsers.HtmlInterpreter} for an HTML
 * value, or {@link com.google.gwt.uibinder.elementparsers.TextInterpreter}
 * for text.
 * 
 * @param interpreter Called for each element, expected to return a string
 *          replacement for it, or null if it should be left as is
 */
public String consumeInnerHtml(Interpreter<String> interpreter) throws UnableToCompleteException {
 if (interpreter == null) {
  throw new NullPointerException("interpreter must not be null");
 }
 StringBuffer buf = new StringBuffer();
 GetInnerHtmlVisitor.getEscapedInnerHtml(elem, buf, interpreter, provider);
 clearChildren(elem);
 return buf.toString().trim();
}

代码示例来源:origin: laaglu/lib-gwt-svg

/**
 * Consumes all child elements, and returns an HTML interpretation of them.
 * Trailing and leading whitespace is trimmed.
 * <p>
 * Each element encountered will be passed to the given Interpreter for
 * possible replacement. Escaping is performed to allow the returned text to
 * serve as a Java string literal used as input to a setInnerHTML call.
 * <p>
 * This call requires an interpreter to make sense of any special children.
 * The odds are you want to use
 * {@link com.google.gwt.uibinder.elementparsers.HtmlInterpreter} for an HTML
 * value, or {@link com.google.gwt.uibinder.elementparsers.TextInterpreter}
 * for text.
 * 
 * @param interpreter Called for each element, expected to return a string
 *          replacement for it, or null if it should be left as is
 */
public String consumeInnerHtml(Interpreter<String> interpreter) throws UnableToCompleteException {
 if (interpreter == null) {
  throw new NullPointerException("interpreter must not be null");
 }
 StringBuffer buf = new StringBuffer();
 GetInnerHtmlVisitor.getEscapedInnerHtml(elem, buf, interpreter, provider);
 clearChildren(elem);
 return buf.toString().trim();
}

代码示例来源:origin: org.vectomatic/lib-gwt-svg

/**
 * Consumes all child elements, and returns an HTML interpretation of them.
 * Trailing and leading whitespace is trimmed.
 * <p>
 * Each element encountered will be passed to the given Interpreter for
 * possible replacement. Escaping is performed to allow the returned text to
 * serve as a Java string literal used as input to a setInnerHTML call.
 * <p>
 * This call requires an interpreter to make sense of any special children.
 * The odds are you want to use
 * {@link com.google.gwt.uibinder.elementparsers.HtmlInterpreter} for an HTML
 * value, or {@link com.google.gwt.uibinder.elementparsers.TextInterpreter}
 * for text.
 * 
 * @param interpreter Called for each element, expected to return a string
 *          replacement for it, or null if it should be left as is
 */
public String consumeInnerHtml(Interpreter<String> interpreter) throws UnableToCompleteException {
 if (interpreter == null) {
  throw new NullPointerException("interpreter must not be null");
 }
 StringBuffer buf = new StringBuffer();
 GetInnerHtmlVisitor.getEscapedInnerHtml(elem, buf, interpreter, provider);
 clearChildren(elem);
 return buf.toString().trim();
}

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

clearChildren(elem);
return buf.toString().trim();

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

clearChildren(elem);
return buf.toString().trim();

代码示例来源:origin: org.vectomatic/lib-gwt-svg

clearChildren(elem);
return buf.toString().trim();

代码示例来源:origin: laaglu/lib-gwt-svg

clearChildren(elem);
return buf.toString().trim();

相关文章

XMLElement类方法