public static class BorderSpecification.Builder extends Object
Constructor and Description |
---|
Builder()
Creates a new builder.
|
Modifier and Type | Method and Description |
---|---|
BorderSpecification.Builder |
align(BorderSpecification.Align value)
Sets the border alignment.
|
BorderSpecification |
build()
Creates a new border specification.
|
BorderSpecification |
build(BorderSpecification fallback)
Creates a new border specification with the supplied fallback
border.
|
BorderSpecification.Builder |
style(BorderSpecification.Style value)
Sets the border style.
|
BorderSpecification.Builder |
width(Integer value)
Sets the width of the border.
|
public BorderSpecification.Builder style(BorderSpecification.Style value)
value
- the border stylepublic BorderSpecification.Builder align(BorderSpecification.Align value)
value
- the border alignmentpublic BorderSpecification.Builder width(Integer value)
value
- the border widthpublic BorderSpecification build()
public BorderSpecification build(BorderSpecification fallback)
fallback
- the fallback border specification