public static class DiffRowGenerator.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DiffRowGenerator |
build()
Build the DiffRowGenerator.
|
DiffRowGenerator.Builder |
columnWidth(int width)
Set the column with of generated lines of original and revised texts.
|
DiffRowGenerator.Builder |
ignoreBlankLines(boolean val)
Ignore blank lines in generating diff rows or not.
|
DiffRowGenerator.Builder |
ignoreWhiteSpaces(boolean val)
Ignore white spaces in generating diff rows or not.
|
DiffRowGenerator.Builder |
InlineNewCssClass(String cssClass)
Set the css class used for displaying changes in the revised text.
|
DiffRowGenerator.Builder |
InlineNewTag(String tag)
Set the tag used for displaying changes in the revised text.
|
DiffRowGenerator.Builder |
InlineOldCssClass(String cssClass)
Set the css class used for displaying changes in the original text.
|
DiffRowGenerator.Builder |
InlineOldTag(String tag)
Set the tag used for displaying changes in the original text.
|
DiffRowGenerator.Builder |
showInlineDiffs(boolean val)
Show inline diffs in generating diff rows or not.
|
public DiffRowGenerator.Builder showInlineDiffs(boolean val)
val - the value to set. Default: false.public DiffRowGenerator.Builder ignoreWhiteSpaces(boolean val)
val - the value to set. Default: true.public DiffRowGenerator.Builder ignoreBlankLines(boolean val)
val - the value to set. Default: true.public DiffRowGenerator.Builder InlineOldTag(String tag)
tag - the tag to set. Without angle brackets. Default: span.public DiffRowGenerator.Builder InlineNewTag(String tag)
tag - the tag to set. Without angle brackets. Default: span.public DiffRowGenerator.Builder InlineOldCssClass(String cssClass)
cssClass - the tag to set. Without any quotes, just word. Default: editOldInline.public DiffRowGenerator.Builder InlineNewCssClass(String cssClass)
cssClass - the tag to set. Without any quotes, just word. Default: editNewInline.public DiffRowGenerator.Builder columnWidth(int width)
width - the width to set. Making it < 0 doesn't have any sense. Default 80.public DiffRowGenerator build()
Copyright © 2019. All rights reserved.