public class BootstrapSpacingBuilder extends Object implements com.helger.html.css.ICSSClassProvider, Serializable
| Constructor and Description |
|---|
BootstrapSpacingBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static BootstrapSpacingBuilder |
createMarginBuilder() |
static BootstrapSpacingBuilder |
createPaddingBuilder() |
String |
getCSSClass() |
BootstrapSpacingBuilder |
grid(EBootstrapGridType eGrid)
Set the grid type.
|
BootstrapSpacingBuilder |
property(EBootstrapSpacingPropertyType eProperty)
Set the property type.
|
BootstrapSpacingBuilder |
side(EBootstrapSpacingSideType eSide)
Set the edge type.
|
BootstrapSpacingBuilder |
size(int nSize)
Number of grid elements to "margin" and "padding" (0 = x*0, 1 = x*.25, 2 =
x*.5, 3 = x*1, 4 = x*1.5, 5 = x*3)
|
BootstrapSpacingBuilder |
sizeAuto()
Think of it as a shortcut for
size (-1) even though this wont
work |
@Nonnull public BootstrapSpacingBuilder property(@Nonnull EBootstrapSpacingPropertyType eProperty)
eProperty - Property type. May not be null.@Nonnull public BootstrapSpacingBuilder side(@Nonnull EBootstrapSpacingSideType eSide)
eSide - Edge type. May not be null.@Nonnull public BootstrapSpacingBuilder grid(@Nonnull EBootstrapGridType eGrid)
eGrid - Grid type. May not be null.@Nonnull public BootstrapSpacingBuilder size(int nSize)
nSize - Size from 0 to 5 ("-1" for "auto" is not allowed here)for automatic@Nonnull public BootstrapSpacingBuilder sizeAuto()
size (-1) even though this wont
worksize(int)@Nonnull public String getCSSClass()
getCSSClass in interface com.helger.html.css.ICSSClassProvider@Nonnull @ReturnsMutableCopy public static BootstrapSpacingBuilder createMarginBuilder()
@Nonnull @ReturnsMutableCopy public static BootstrapSpacingBuilder createPaddingBuilder()
Copyright © 2015–2020 Philip Helger. All rights reserved.