/** * Parsing of the children is done, we can move our children to the content. */ @Override protected void onAllChildrenAddedToPage(final boolean postponed) { while (getFirstChild() != null) { final DomNode child = getFirstChild(); child.basicRemove(); domDocumentFragment_.appendChild(child); } } }
/** * Gets the innerHTML attribute. * @return the contents of this node as HTML */ @JsxGetter @Override public String getInnerHTML() { final DomNode domNode; try { domNode = ((HtmlTemplate) getDomNodeOrDie()).getContent(); } catch (final IllegalStateException e) { Context.throwAsScriptRuntimeEx(e); return ""; } return getInnerHTML(domNode); } }
element = new HtmlTemplate(qualifiedName, page, attributeMap); break;
/** * Gets the innerHTML attribute. * @return the contents of this node as HTML */ @JsxGetter @Override public String getInnerHTML() { final DomNode domNode; try { domNode = ((HtmlTemplate) getDomNodeOrDie()).getContent(); } catch (final IllegalStateException e) { Context.throwAsScriptRuntimeEx(e); return ""; } return getInnerHTML(domNode); } }
element = new HtmlTemplate(qualifiedName, page, attributeMap); break;
/** * @return the value of the {@code content} property */ @JsxGetter public DocumentFragment getContent() { final DocumentFragment result = new DocumentFragment(); result.setPrototype(getPrototype(result.getClass())); result.setParentScope(getParentScope()); result.setDomNode(((HtmlTemplate) getDomNodeOrDie()).getContent()); return result; }
/** * Parsing of the children is done, we can move our children to the content. */ @Override protected void onAllChildrenAddedToPage(final boolean postponed) { while (getFirstChild() != null) { final DomNode child = getFirstChild(); child.basicRemove(); domDocumentFragment_.appendChild(child); } } }
/** * @return the value of the {@code content} property */ @JsxGetter public DocumentFragment getContent() { final DocumentFragment result = new DocumentFragment(); result.setPrototype(getPrototype(result.getClass())); result.setParentScope(getParentScope()); result.setDomNode(((HtmlTemplate) getDomNodeOrDie()).getContent()); return result; }