org.apache.poi.hwpf.converter
Class HtmlDocumentFacade
java.lang.Object
org.apache.poi.hwpf.converter.HtmlDocumentFacade
@Beta
public class HtmlDocumentFacade
- extends java.lang.Object
Field Summary |
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
body
protected final org.w3c.dom.Element body
document
protected final org.w3c.dom.Document document
head
protected final org.w3c.dom.Element head
html
protected final org.w3c.dom.Element html
title
protected org.w3c.dom.Element title
titleText
protected org.w3c.dom.Text titleText
HtmlDocumentFacade
public HtmlDocumentFacade(org.w3c.dom.Document document)
addAuthor
public void addAuthor(java.lang.String value)
addDescription
public void addDescription(java.lang.String value)
addKeywords
public void addKeywords(java.lang.String value)
addMeta
public void addMeta(java.lang.String name,
java.lang.String value)
addStyleClass
public void addStyleClass(org.w3c.dom.Element element,
java.lang.String classNamePrefix,
java.lang.String style)
buildStylesheet
protected java.lang.String buildStylesheet(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> prefixToMapOfStyles)
createBlock
public org.w3c.dom.Element createBlock()
createBookmark
public org.w3c.dom.Element createBookmark(java.lang.String name)
createHeader1
public org.w3c.dom.Element createHeader1()
createHeader2
public org.w3c.dom.Element createHeader2()
createHyperlink
public org.w3c.dom.Element createHyperlink(java.lang.String internalDestination)
createImage
public org.w3c.dom.Element createImage(java.lang.String src)
createLineBreak
public org.w3c.dom.Element createLineBreak()
createListItem
public org.w3c.dom.Element createListItem()
createParagraph
public org.w3c.dom.Element createParagraph()
createTable
public org.w3c.dom.Element createTable()
createTableBody
public org.w3c.dom.Element createTableBody()
createTableCell
public org.w3c.dom.Element createTableCell()
createTableColumn
public org.w3c.dom.Element createTableColumn()
createTableColumnGroup
public org.w3c.dom.Element createTableColumnGroup()
createTableHeader
public org.w3c.dom.Element createTableHeader()
createTableHeaderCell
public org.w3c.dom.Element createTableHeaderCell()
createTableRow
public org.w3c.dom.Element createTableRow()
createText
public org.w3c.dom.Text createText(java.lang.String data)
createUnorderedList
public org.w3c.dom.Element createUnorderedList()
getBody
public org.w3c.dom.Element getBody()
getDocument
public org.w3c.dom.Document getDocument()
getHead
public org.w3c.dom.Element getHead()
getOrCreateCssClass
public java.lang.String getOrCreateCssClass(java.lang.String classNamePrefix,
java.lang.String style)
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String titleText)
updateStylesheet
public void updateStylesheet()
Copyright 2012 The Apache Software Foundation or
its licensors, as applicable.