public class HtmlSerializerVisibleText extends Object
This is also used from estimations by ComputedCSSStyleDeclaration.
Modifier and Type | Class and Description |
---|---|
protected static class |
HtmlSerializerVisibleText.HtmlSerializerTextBuilder
Helper to compose the text for the serializer based on several modes.
|
Constructor and Description |
---|
HtmlSerializerVisibleText() |
public String asText(DomNode node)
node
- a nodeprotected void appendChildren(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, DomNode node, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
builder
- the StringBuilder to add tonode
- the node to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendNode(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, DomNode node, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
builder
- the StringBuilder to add tonode
- the node to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendDomNode(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, DomNode domNode, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
DomNode
.builder
- the StringBuilder to add todomNode
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendHiddenInput(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlHiddenInput htmlHiddenInput, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlHiddenInput
.builder
- the StringBuilder to add tohtmlHiddenInput
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendScript(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlScript htmlScript, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlScript
.builder
- the StringBuilder to add tohtmlScript
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendStyle(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlStyle htmlStyle, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlStyle
.builder
- the StringBuilder to add tohtmlStyle
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendNoScript(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlNoScript htmlNoScript, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlNoScript
.builder
- the StringBuilder to add tohtmlNoScript
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendNoFrames(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlNoFrames htmlNoFrames, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlNoFrames
.builder
- the StringBuilder to add tohtmlNoFrames
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendSubmitInput(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlSubmitInput htmlSubmitInput, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlSubmitInput
.builder
- the StringBuilder to add tohtmlSubmitInput
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendInput(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlInput htmlInput, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlInput
.builder
- the StringBuilder to add tohtmlInput
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendResetInput(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlResetInput htmlResetInput, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlResetInput
.builder
- the StringBuilder to add tohtmlResetInput
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendMenu(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlMenu htmlMenu, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlMenu
.builder
- the StringBuilder to add tohtmlMenu
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendDetails(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlDetails htmlDetails, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlDetails
.builder
- the StringBuilder to add tohtmlDetails
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendTitle(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlTitle htmlTitle, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlTitle
.builder
- the StringBuilder to add tohtmlTitle
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendTableRow(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlTableRow htmlTableRow, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlTableRow
.builder
- the StringBuilder to add tohtmlTableRow
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected boolean isDisplayed(DomNode domNode)
domNode
- the node to checkprotected void appendTextArea(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlTextArea htmlTextArea, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlTextArea
.builder
- the StringBuilder to add tohtmlTextArea
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendTable(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlTable htmlTable, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlTable
.builder
- the StringBuilder to add tohtmlTable
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected boolean appendTableRows(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode, List<HtmlTableRow> rows, boolean first, TableRowGroup skipParent1, TableRowGroup skipParent2)
HtmlTableRow
.builder
- the StringBuilder to add tomode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingrows
- the rowsfirst
- if true this is the first oneskipParent1
- skip row if the parent is thisskipParent2
- skip row if the parent is thisprotected void appendSelect(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlSelect htmlSelect, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlSelect
.builder
- the StringBuilder to add tohtmlSelect
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendOption(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlOption htmlOption, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlSelect
.builder
- the StringBuilder to add tohtmlOption
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendOrderedList(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlOrderedList htmlOrderedList, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlOrderedList
.builder
- the StringBuilder to add tohtmlOrderedList
- the OL elementmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendUnorderedList(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlUnorderedList htmlUnorderedList, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlUnorderedList
.builder
- the StringBuilder to add tohtmlUnorderedList
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendPreformattedText(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlPreformattedText htmlPreformattedText, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlPreformattedText
.builder
- the StringBuilder to add tohtmlPreformattedText
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendInlineFrame(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlInlineFrame htmlInlineFrame, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlInlineFrame
.builder
- the StringBuilder to add tohtmlInlineFrame
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendText(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, DomText domText, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
DomText
.builder
- the StringBuilder to add todomText
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendComment(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, DomComment domComment, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
DomComment
.builder
- the StringBuilder to add todomComment
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendBreak(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlBreak htmlBreak, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlBreak
.builder
- the StringBuilder to add tohtmlBreak
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendCheckBoxInput(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlCheckBoxInput htmlCheckBoxInput, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlCheckBoxInput
.builder
- the StringBuilder to add tohtmlCheckBoxInput
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendRadioButtonInput(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlRadioButtonInput htmlRadioButtonInput, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
HtmlRadioButtonInput
.builder
- the StringBuilder to add tohtmlRadioButtonInput
- the target to processmode
- the HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode
to use for processingprotected HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode whiteSpaceStyle(DomNode domNode, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode defaultMode)
protected HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode updateWhiteSpaceStyle(DomNode domNode, HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode defaultMode)
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.