@Beta public class HtmlDocumentFacade extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Element |
body |
protected org.w3c.dom.Document |
document |
protected org.w3c.dom.Element |
head |
protected org.w3c.dom.Element |
html |
protected org.w3c.dom.Element |
title |
protected org.w3c.dom.Text |
titleText |
Constructor and Description |
---|
HtmlDocumentFacade(org.w3c.dom.Document document) |
Modifier and Type | Method and Description |
---|---|
void |
addAuthor(java.lang.String value) |
void |
addDescription(java.lang.String value) |
void |
addKeywords(java.lang.String value) |
void |
addMeta(java.lang.String name,
java.lang.String value) |
void |
addStyleClass(org.w3c.dom.Element element,
java.lang.String classNamePrefix,
java.lang.String style) |
protected java.lang.String |
buildStylesheet(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> prefixToMapOfStyles) |
org.w3c.dom.Element |
createBlock() |
org.w3c.dom.Element |
createBookmark(java.lang.String name) |
org.w3c.dom.Element |
createHeader1() |
org.w3c.dom.Element |
createHeader2() |
org.w3c.dom.Element |
createHyperlink(java.lang.String internalDestination) |
org.w3c.dom.Element |
createImage(java.lang.String src) |
org.w3c.dom.Element |
createLineBreak() |
org.w3c.dom.Element |
createListItem() |
org.w3c.dom.Element |
createOption(java.lang.String value,
boolean selected) |
org.w3c.dom.Element |
createParagraph() |
org.w3c.dom.Element |
createSelect() |
org.w3c.dom.Element |
createTable() |
org.w3c.dom.Element |
createTableBody() |
org.w3c.dom.Element |
createTableCell() |
org.w3c.dom.Element |
createTableColumn() |
org.w3c.dom.Element |
createTableColumnGroup() |
org.w3c.dom.Element |
createTableHeader() |
org.w3c.dom.Element |
createTableHeaderCell() |
org.w3c.dom.Element |
createTableRow() |
org.w3c.dom.Text |
createText(java.lang.String data) |
org.w3c.dom.Element |
createUnorderedList() |
org.w3c.dom.Element |
getBody() |
org.w3c.dom.Document |
getDocument() |
org.w3c.dom.Element |
getHead() |
java.lang.String |
getOrCreateCssClass(java.lang.String classNamePrefix,
java.lang.String style) |
java.lang.String |
getTitle() |
void |
setTitle(java.lang.String titleText) |
void |
updateStylesheet() |
protected final org.w3c.dom.Element body
protected final org.w3c.dom.Document document
protected final org.w3c.dom.Element head
protected final org.w3c.dom.Element html
protected org.w3c.dom.Element title
protected org.w3c.dom.Text titleText
public void addAuthor(java.lang.String value)
public void addDescription(java.lang.String value)
public void addKeywords(java.lang.String value)
public void addMeta(java.lang.String name, java.lang.String value)
public void addStyleClass(org.w3c.dom.Element element, java.lang.String classNamePrefix, java.lang.String style)
protected java.lang.String buildStylesheet(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> prefixToMapOfStyles)
public org.w3c.dom.Element createBlock()
public org.w3c.dom.Element createBookmark(java.lang.String name)
public org.w3c.dom.Element createHeader1()
public org.w3c.dom.Element createHeader2()
public org.w3c.dom.Element createHyperlink(java.lang.String internalDestination)
public org.w3c.dom.Element createImage(java.lang.String src)
public org.w3c.dom.Element createLineBreak()
public org.w3c.dom.Element createListItem()
public org.w3c.dom.Element createOption(java.lang.String value, boolean selected)
public org.w3c.dom.Element createParagraph()
public org.w3c.dom.Element createSelect()
public org.w3c.dom.Element createTable()
public org.w3c.dom.Element createTableBody()
public org.w3c.dom.Element createTableCell()
public org.w3c.dom.Element createTableColumn()
public org.w3c.dom.Element createTableColumnGroup()
public org.w3c.dom.Element createTableHeader()
public org.w3c.dom.Element createTableHeaderCell()
public org.w3c.dom.Element createTableRow()
public org.w3c.dom.Text createText(java.lang.String data)
public org.w3c.dom.Element createUnorderedList()
public org.w3c.dom.Element getBody()
public org.w3c.dom.Document getDocument()
public org.w3c.dom.Element getHead()
public java.lang.String getOrCreateCssClass(java.lang.String classNamePrefix, java.lang.String style)
public java.lang.String getTitle()
public void setTitle(java.lang.String titleText)
public void updateStylesheet()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.