Package org.daisy.dotify.api.formatter
Class TableCellProperties.Builder
- java.lang.Object
-
- org.daisy.dotify.api.formatter.TableCellProperties.Builder
-
- Enclosing class:
- TableCellProperties
public static class TableCellProperties.Builder extends Object
Provides a builder for creating table properties.
-
-
Constructor Summary
Constructors Constructor Description Builder()Creates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableCellProperties.Builderborder(Border value)Sets the border.TableCellPropertiesbuild()Creates a new table cell properties using the current state of this builder.TableCellProperties.BuildercolSpan(int value)Sets the column span.TableCellProperties.Builderpadding(BlockSpacing value)Sets the padding.TableCellProperties.BuilderrowSpan(int value)Sets the row span.TableCellProperties.BuildertextBlockProperties(TextBlockProperties value)Gets the text block properties builder.
-
-
-
Method Detail
-
rowSpan
public TableCellProperties.Builder rowSpan(int value)
Sets the row span.- Parameters:
value- the value- Returns:
- returns this object
-
colSpan
public TableCellProperties.Builder colSpan(int value)
Sets the column span.- Parameters:
value- the value- Returns:
- returns this object
-
padding
public TableCellProperties.Builder padding(BlockSpacing value)
Sets the padding.- Parameters:
value- the padding- Returns:
- returns this object
-
textBlockProperties
public TableCellProperties.Builder textBlockProperties(TextBlockProperties value)
Gets the text block properties builder.- Parameters:
value- the text block properties- Returns:
- returns the text block properties builder
-
border
public TableCellProperties.Builder border(Border value)
Sets the border.- Parameters:
value- the border- Returns:
- returns this object
-
build
public TableCellProperties build()
Creates a new table cell properties using the current state of this builder.- Returns:
- returns a new table cell properties
-
-