public static class BlockProperties.Builder extends Object
| Constructor and Description |
|---|
Builder()
Create a new Builder
|
| Modifier and Type | Method and Description |
|---|---|
BlockProperties.Builder |
align(FormattingTypes.Alignment align)
Sets the alignment property for the block.
|
BlockProperties.Builder |
blockIndent(int blockIndent)
Set the block indent for the block, in characters.
|
BlockProperties.Builder |
bottomMargin(int bottomMargin)
Set the bottom margin for the block, in characters.
|
BlockProperties.Builder |
bottomPadding(int bottomPadding)
Set the bottom padding for the block, in characters.
|
BlockProperties.Builder |
breakBefore(FormattingTypes.BreakBefore breakBefore)
Set the break before property for the block.
|
BlockProperties |
build()
Build BlockProperties using the current state of the Builder.
|
BlockProperties.Builder |
defaultListLabel(String label)
Sets the default label for list items in the block.
|
BlockProperties.Builder |
displayWhen(Condition value)
Sets the display-when expression
|
BlockProperties.Builder |
firstLineIndent(int firstLineIndent)
Set the first line indent for the block, in characters.
|
BlockProperties.Builder |
identifier(String identifier)
Sets the identifier for the block
|
BlockProperties.Builder |
keep(FormattingTypes.Keep keep)
Set the keep property for the block.
|
BlockProperties.Builder |
keepWithNext(int keepWithNext)
Set the keep with next property for the block.
|
BlockProperties.Builder |
keepWithNextSheets(int keepWithNextSheets)
Sets the keep with next sheets property for the block.
|
BlockProperties.Builder |
keepWithPreviousSheets(int keepWithPreviousSheets)
Sets the keep with previous sheets property for the block.
|
BlockProperties.Builder |
leftMargin(int leftMargin)
Set the left margin for the block, in characters.
|
BlockProperties.Builder |
leftPadding(int leftPadding)
Set the left padding for the block, in characters.
|
BlockProperties.Builder |
listItemLabel(String label)
Sets the list item label for the block.
|
BlockProperties.Builder |
listNumberFormat(NumeralStyle listFormat)
Sets the number format for the block.
|
BlockProperties.Builder |
listType(FormattingTypes.ListStyle listType)
Set the list type for the block.
|
BlockProperties.Builder |
orphans(int value)
Sets the orphans property
|
BlockProperties.Builder |
rightLastLineIndent(int rightLastLineIndent)
Set the right last line indent for the block, in characters.
|
BlockProperties.Builder |
rightMargin(int rightMargin)
Set the right margin for the block, in characters.
|
BlockProperties.Builder |
rightPadding(int rightPadding)
Set the right padding for the block, in characters.
|
BlockProperties.Builder |
rightTextIndent(int rightTextIndent)
Set the right text indent for the block, in characters.
|
BlockProperties.Builder |
rowSpacing(float value)
Sets the row spacing for the block
|
BlockProperties.Builder |
textBorderStyle(TextBorderStyle value)
Sets the text border style for the block.
|
BlockProperties.Builder |
textIndent(int textIndent)
Set the text indent for the block, in characters.
|
BlockProperties.Builder |
topMargin(int topMargin)
Set the top margin for the block, in characters.
|
BlockProperties.Builder |
topPadding(int topPadding)
Set the top padding for the block, in characters.
|
BlockProperties.Builder |
underlineStyle(String value)
Sets the underline pattern for the block.
|
BlockProperties.Builder |
verticalAlignment(BlockPosition.VerticalAlignment alignment)
Sets the vertical alignment for this block.
|
BlockProperties.Builder |
verticalPosition(Position position)
Sets the vertical position for this block.
|
BlockProperties.Builder |
volumeKeepPriority(Integer value)
Sets the volume keep priority for the block.
|
BlockProperties.Builder |
widows(int value)
Sets the widows property
|
public BlockProperties.Builder leftMargin(int leftMargin)
leftMargin - left margin, in characterspublic BlockProperties.Builder rightMargin(int rightMargin)
rightMargin - right margin, in characterspublic BlockProperties.Builder topMargin(int topMargin)
topMargin - top margin, in characterspublic BlockProperties.Builder bottomMargin(int bottomMargin)
bottomMargin - bottom margin, in characterspublic BlockProperties.Builder leftPadding(int leftPadding)
leftPadding - left padding, in characterspublic BlockProperties.Builder rightPadding(int rightPadding)
rightPadding - right padding, in characterspublic BlockProperties.Builder topPadding(int topPadding)
topPadding - top padding, in characterspublic BlockProperties.Builder bottomPadding(int bottomPadding)
bottomPadding - bottom padding, in characterspublic BlockProperties.Builder textIndent(int textIndent)
firstLineIndent(int).
The text indent is applied to text directly within
the block, but is not inherited to block children.textIndent - the indent, in characterspublic BlockProperties.Builder firstLineIndent(int firstLineIndent)
firstLineIndent - the indent, in characters.public BlockProperties.Builder rightTextIndent(int rightTextIndent)
rightLastLineIndent(int). The indent is applied to text
directly within the block, but is not inherited to block
children.rightTextIndent - the indent, in characterspublic BlockProperties.Builder rightLastLineIndent(int rightLastLineIndent)
rightLastLineIndent - the indent, in characters.public BlockProperties.Builder listType(FormattingTypes.ListStyle listType)
listType - the type of listpublic BlockProperties.Builder listNumberFormat(NumeralStyle listFormat)
listFormat - the numeral stylepublic BlockProperties.Builder defaultListLabel(String label)
label - the default list labelpublic BlockProperties.Builder listItemLabel(String label)
label - the labelpublic BlockProperties.Builder breakBefore(FormattingTypes.BreakBefore breakBefore)
breakBefore - the break before typepublic BlockProperties.Builder keep(FormattingTypes.Keep keep)
keep - the keep typepublic BlockProperties.Builder align(FormattingTypes.Alignment align)
align - the alignmentpublic BlockProperties.Builder keepWithNext(int keepWithNext)
keepWithNext - the number of rows in the next
block to keep together with this blockpublic BlockProperties.Builder keepWithPreviousSheets(int keepWithPreviousSheets)
keepWithPreviousSheets - the number of sheetspublic BlockProperties.Builder keepWithNextSheets(int keepWithNextSheets)
keepWithNextSheets - the number of sheetspublic BlockProperties.Builder verticalPosition(Position position)
position - the positionpublic BlockProperties.Builder verticalAlignment(BlockPosition.VerticalAlignment alignment)
alignment - the alignmentpublic BlockProperties.Builder rowSpacing(float value)
value - the row spacingpublic BlockProperties.Builder blockIndent(int blockIndent)
blockIndent - the indent, in characterspublic BlockProperties.Builder volumeKeepPriority(Integer value)
value - a value between 1-9IllegalArgumentException - if the value is out of rangepublic BlockProperties.Builder identifier(String identifier)
identifier - the identifierpublic BlockProperties.Builder textBorderStyle(TextBorderStyle value)
value - the text borderpublic BlockProperties.Builder underlineStyle(String value)
value - the valuepublic BlockProperties.Builder orphans(int value)
value - the valuepublic BlockProperties.Builder widows(int value)
value - the valuepublic BlockProperties.Builder displayWhen(Condition value)
value - Expression to decide if the block should be shownpublic BlockProperties build()