public class BordersBuilder extends Object
| Constructor and Description |
|---|
BordersBuilder()
Main constructor
|
BordersBuilder(BorderAttribute all,
BorderAttribute top,
BorderAttribute right,
BorderAttribute bottom,
BorderAttribute left)
Reserved to Borders.toBuilder()
|
| Modifier and Type | Method and Description |
|---|---|
BordersBuilder |
all(BorderAttribute attribute)
Set all borders
|
BordersBuilder |
all(Length size,
Color color,
BorderStyle style)
Set all borders
|
BordersBuilder |
bottom(BorderAttribute attribute)
Set the bottom border
|
BordersBuilder |
bottom(Length size,
Color color,
BorderStyle style)
Set the bottom border
|
Borders |
build()
Build the borders
|
BordersBuilder |
left(BorderAttribute attribute)
Set the left border
|
BordersBuilder |
left(Length size,
Color color,
BorderStyle style)
Set the left border
|
BordersBuilder |
right(BorderAttribute attribute)
Set the right border
|
BordersBuilder |
right(Length size,
Color color,
BorderStyle style)
Set the right border
|
BordersBuilder |
top(BorderAttribute attribute)
Set the top border
|
BordersBuilder |
top(Length size,
Color color,
BorderStyle style)
Set the top border
|
public BordersBuilder(BorderAttribute all, BorderAttribute top, BorderAttribute right, BorderAttribute bottom, BorderAttribute left)
all - all borderstop - the top borderright - the right borderbottom - the bottom borderleft - the left borderpublic BordersBuilder()
public BordersBuilder all(BorderAttribute attribute)
attribute - the attribute value of the borderspublic BordersBuilder all(Length size, Color color, BorderStyle style)
size - the size of the borders as a lengthcolor - the color fo the bordersstyle - the style of the borderspublic BordersBuilder bottom(BorderAttribute attribute)
attribute - the attribute value of the borderpublic BordersBuilder bottom(Length size, Color color, BorderStyle style)
size - the size of the border as a lengthcolor - the color fo the borderstyle - the style of the borderpublic Borders build()
public BordersBuilder left(BorderAttribute attribute)
attribute - the attribute value of the borderpublic BordersBuilder left(Length size, Color color, BorderStyle style)
size - the size of the border as a lengthcolor - the color fo the borderstyle - the style of the borderpublic BordersBuilder right(BorderAttribute attribute)
attribute - the attribute value of the borderpublic BordersBuilder right(Length size, Color color, BorderStyle style)
size - the size of the border as a lengthcolor - the color fo the borderstyle - the style of the borderpublic BordersBuilder top(BorderAttribute attribute)
attribute - the attribute value of the borderpublic BordersBuilder top(Length size, Color color, BorderStyle style)
size - the size of the border as a lengthcolor - the color fo the borderstyle - the style of the borderCopyright © 2016–2021. All rights reserved.