public class PageNode extends InfoboxNode
Modifier and Type | Field and Description |
---|---|
HTMLNode |
headNode
Return the HTMLNode corresponding to the <head> tag, so we can add stuff to it, e.g.
|
content, outer
Modifier and Type | Method and Description |
---|---|
void |
addCustomStyleSheet(java.lang.String customStyleSheet)
Adds a custom style sheet to the header of the page.
|
void |
addForwardLink(java.lang.String linkType,
java.lang.String href)
Adds a document relationship forward link to the HTML document's HEAD
node.
|
void |
addForwardLink(java.lang.String linkType,
java.lang.String href,
java.lang.String type,
java.lang.String media)
Adds a document relationship forward link to the HTML document's HEAD
node.
|
public final HTMLNode headNode
public void addCustomStyleSheet(java.lang.String customStyleSheet)
customStyleSheet
- The URL of the custom style sheetpublic void addForwardLink(java.lang.String linkType, java.lang.String href)
linkType
- The link type (e.g. "stylesheet" or "shortcut icon")href
- The linkpublic void addForwardLink(java.lang.String linkType, java.lang.String href, java.lang.String type, java.lang.String media)
linkType
- The link type (e.g. "stylesheet" or "shortcut icon")href
- The linktype
- The type of the referenced datamedia
- The media for which this link is valid