Package com.jbstrap.ui.bootstrap
Class Margin
java.lang.Object
com.jbstrap.ui.bootstrap.Margin
- All Implemented Interfaces:
StyleElement
Available margins
The margins listed here are included in Bootstrap and can be used in any combination.
- Since:
- 4.0
- Author:
- JBStrap
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static Margin
MARGIN_0()
For all screen types, padding is removed from all sides of the component.static Margin
MARGIN_0
(ScreenSize screenSize) No margin is set on one side of the component in case of the specified screen size or a bigger screen size.static Margin
MARGIN_1()
For all screen sizes, a 1 unit thick margin is set on every side of the component.static Margin
MARGIN_1
(ScreenSize screenSize) On all sides of the component, a 1 unit thick margin is set in case of the specified or bigger screen size.static Margin
MARGIN_2()
For all screen sizes, a 2 units thick margin is set on every side of the component.static Margin
MARGIN_2
(ScreenSize screenSize) On all sides of the component, a 2 units thick margin is set in case of the specified or bigger screen size.static Margin
MARGIN_3()
For all screen sizes, a 3 units thick margin is set on every side of the component.static Margin
MARGIN_3
(ScreenSize screenSize) On all sides of the component, a 3 units thick margin is set in case of the specified or bigger screen size.static Margin
MARGIN_4()
For all screen sizes, a 4 units thick margin is set on every side of the component.static Margin
MARGIN_4
(ScreenSize screenSize) On all sides of the component, a 4 units thick margin is set in case of the specified or bigger screen size.static Margin
MARGIN_5()
For all screen sizes, a 5 units thick margin is set on every side of the component.static Margin
MARGIN_5
(ScreenSize screenSize) On all sides of the component, a 5 units thick margin is set in case of the specified or bigger screen size.static Margin
On the lower side of the component, no margin is set for all screen sizes.static Margin
MARGIN_BOTTOM_0
(ScreenSize screenSize) On the lower side of the component, no margin is set for the specified screen size.static Margin
A 1 unit thick margin is set on the lower side of the component for all screen sizes.static Margin
MARGIN_BOTTOM_1
(ScreenSize screenSize) On the lower side of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.static Margin
On the lower side of the component, a 2 unit thick margin is set for all screen sizes.static Margin
MARGIN_BOTTOM_2
(ScreenSize screenSize) On the lower side of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.static Margin
On the lower side of the component, a 3 unit thick margin is set for all screen sizes.static Margin
MARGIN_BOTTOM_3
(ScreenSize screenSize) On the lower side of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.static Margin
On the lower side of the component, a 4 unit thick margin is set for all screen sizes.static Margin
MARGIN_BOTTOM_4
(ScreenSize screenSize) On the lower side of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.static Margin
On the lower side of the component, a 5 unit thick margin is set for all screen sizes.static Margin
MARGIN_BOTTOM_5
(ScreenSize screenSize) On the lower side of the component, a 5 unit thick margin is set for the specified or bigger screen sizes.static Margin
For all screen sizes, automatic margin is set on the bottom of the component.static Margin
MARGIN_BOTTOM_AUTO
(ScreenSize screenSize) For all screen sizes, automatic margin is set on the bottom of the component.static Margin
On the right and left sides of the component, no margin is set for all screen sizes.static Margin
MARGIN_HORIZONTAL_0
(ScreenSize screenSize) On the right and left sides of the component, no margin is set for the specified screen size.static Margin
A 1 unit thick margin is set on the right and left sides of the component for all screen sizes.static Margin
MARGIN_HORIZONTAL_1
(ScreenSize screenSize) On the right and left sides of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 2 unit thick margin is set on the right and left sides of the component for all screen sizes.static Margin
MARGIN_HORIZONTAL_2
(ScreenSize screenSize) On the right and left sides of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 3 unit thick margin is set on the right and left sides of the component for all screen sizes.static Margin
MARGIN_HORIZONTAL_3
(ScreenSize screenSize) On the right and left sides of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 4 unit thick margin is set on the right and left sides of the component for all screen sizes.static Margin
MARGIN_HORIZONTAL_4
(ScreenSize screenSize) On the right and left sides of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 5 unit thick margin is set on the right and left sides of the component for all screen sizes.static Margin
MARGIN_HORIZONTAL_5
(ScreenSize screenSize) On the right and left sides of the component, a 5 unit thick margin is set for the specified or bigger screen sizes.static Margin
For all screen sizes, automatic margin is set on the left and right sides of the component.static Margin
MARGIN_HORIZONTAL_AUTO
(ScreenSize screenSize) For all screen sizes, automatic margin is set on the right side of the component.static Margin
On the left side of the component, no margin is set for all screen sizes.static Margin
MARGIN_LEFT_0
(ScreenSize screenSize) On the left side of the component, no margin is set for the specified screen size.static Margin
A 1 unit thick margin is set on the left side of the component for all screen sizes.static Margin
MARGIN_LEFT_1
(ScreenSize screenSize) On the left side of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 2 unit thick margin is set on the left side of the component for all screen sizes.static Margin
MARGIN_LEFT_2
(ScreenSize screenSize) On the left side of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 3 unit thick margin is set on the left side of the component for all screen sizes.static Margin
MARGIN_LEFT_3
(ScreenSize screenSize) On the left side of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 4 unit thick margin is set on the left side of the component for all screen sizes.static Margin
MARGIN_LEFT_4
(ScreenSize screenSize) On the left side of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 5 unit thick margin is set on the left side of the component for all screen sizes.static Margin
MARGIN_LEFT_5
(ScreenSize screenSize) On the left side of the component, a 5 unit thick margin is set for the specified or bigger screen sizes.static Margin
For all screen sizes, automatic margin is set on the left side of the component.static Margin
MARGIN_LEFT_AUTO
(ScreenSize screenSize) For all screen sizes, automatic margin is set on the left side of the component.static Margin
On the right side of the component, no margin is set for all screen sizes.static Margin
MARGIN_RIGHT_0
(ScreenSize screenSize) On the right side of the component, no margin is set for the specified screen size.static Margin
A 1 unit thick margin is set on the right side of the component for all screen sizes.static Margin
MARGIN_RIGHT_1
(ScreenSize screenSize) On the right side of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 2 unit thick margin is set on the right side of the component for all screen sizes.static Margin
MARGIN_RIGHT_2
(ScreenSize screenSize) On the right side of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 3 unit thick margin is set on the right side of the component for all screen sizes.static Margin
MARGIN_RIGHT_3
(ScreenSize screenSize) On the right side of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 4 unit thick margin is set on the right side of the component for all screen sizes.static Margin
MARGIN_RIGHT_4
(ScreenSize screenSize) On the right side of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.static Margin
A 5 unit thick margin is set on the right side of the component for all screen sizes.static Margin
MARGIN_RIGHT_5
(ScreenSize screenSize) On the right side of the component, a 5 unit thick margin is set for the specified or bigger screen sizes.static Margin
For all screen sizes, automatic margin is set on the right side of the component.static Margin
MARGIN_RIGHT_AUTO
(ScreenSize screenSize) For all screen sizes, automatic margin is set on the right side of the component.static Margin
For all screen sizes, there is no margin set for the upper side of the component.static Margin
MARGIN_TOP_0
(ScreenSize screenSize) For the specified screen size, there is no margin set for the upper side of the component.static Margin
For all screen sizes, a 1 unit thick margin is set on the top of the component.static Margin
MARGIN_TOP_1
(ScreenSize screenSize) On the upper side of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.static Margin
For all screen sizes, a 2 unit thick margin is set on the upper side of the component.static Margin
MARGIN_TOP_2
(ScreenSize screenSize) On the upper side of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.static Margin
For all screen sizes, a 3 unit thick margin is set on the upper side of the component.static Margin
MARGIN_TOP_3
(ScreenSize screenSize) On the upper side of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.static Margin
For all screen sizes, a 4 unit thick margin is set on the upper side of the component.static Margin
MARGIN_TOP_4
(ScreenSize screenSize) On the upper side of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.static Margin
For all screen sizes, a 5 unit thick margin is set on the upper side of the component.static Margin
MARGIN_TOP_5
(ScreenSize screenSize) On the upper side of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.static Margin
For all screen sizes, automatic margin is set on the top of the component.static Margin
MARGIN_TOP_AUTO
(ScreenSize screenSize) For all screen sizes, automatic margin is set on the top of the component.static Margin
On the lower and upper sidess of the component, no margin is set for all screen sizes.static Margin
MARGIN_VERTICAL_0
(ScreenSize screenSize) On the lower and upper sidess of the component, no margin is set for the specified screen size.static Margin
On the lower and upper sides of the component, a 1 unit thick margin is set for all screen sizes.static Margin
MARGIN_VERTICAL_1
(ScreenSize screenSize) On the lower and upper sides of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.static Margin
On the lower and upper sides of the component, a 2 unit thick margin is set for all screen sizes.static Margin
MARGIN_VERTICAL_2
(ScreenSize screenSize) On the lower and upper sides of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.static Margin
On the lower and upper sides of the component, a 3 unit thick margin is set for all screen sizes.static Margin
MARGIN_VERTICAL_3
(ScreenSize screenSize) On the lower and upper sides of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.static Margin
On the lower and upper sides of the component, a 4 unit thick margin is set for all screen sizes.static Margin
MARGIN_VERTICAL_4
(ScreenSize screenSize) On the lower and upper sides of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.static Margin
On the lower and upper sides of the component, a 5 unit thick margin is set for all screen sizes.static Margin
MARGIN_VERTICAL_5
(ScreenSize screenSize) On the lower and upper sides of the component, a 5 unit thick margin is set for the specified or bigger screen sizes.static Margin
For all screen sizes, automatic margin is set on the top and bottom sides of the component.static Margin
MARGIN_VERTICAL_AUTO
(ScreenSize screenSize) For all screen sizes, automatic margin is set on the top and bottom sides of the component.void
static void
removeAllMarginSettings
(Component<?> component)
-
Method Details
-
MARGIN_0
For all screen types, padding is removed from all sides of the component.- Returns:
- Margin class
-
MARGIN_0
No margin is set on one side of the component in case of the specified screen size or a bigger screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_1
For all screen sizes, a 1 unit thick margin is set on every side of the component.- Returns:
- Margin class
-
MARGIN_1
On all sides of the component, a 1 unit thick margin is set in case of the specified or bigger screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_2
For all screen sizes, a 2 units thick margin is set on every side of the component.- Returns:
- Margin class
-
MARGIN_2
On all sides of the component, a 2 units thick margin is set in case of the specified or bigger screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_3
For all screen sizes, a 3 units thick margin is set on every side of the component.- Returns:
- Margin class
-
MARGIN_3
On all sides of the component, a 3 units thick margin is set in case of the specified or bigger screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_4
For all screen sizes, a 4 units thick margin is set on every side of the component.- Returns:
- Margin class
-
MARGIN_4
On all sides of the component, a 4 units thick margin is set in case of the specified or bigger screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_5
For all screen sizes, a 5 units thick margin is set on every side of the component.- Returns:
- Margin class
-
MARGIN_5
On all sides of the component, a 5 units thick margin is set in case of the specified or bigger screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_TOP_0
For all screen sizes, there is no margin set for the upper side of the component.- Returns:
- Margin class
-
MARGIN_TOP_0
For the specified screen size, there is no margin set for the upper side of the component.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_TOP_1
For all screen sizes, a 1 unit thick margin is set on the top of the component.- Returns:
- Margin class
-
MARGIN_TOP_1
On the upper side of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_TOP_2
For all screen sizes, a 2 unit thick margin is set on the upper side of the component.- Returns:
- Margin class
-
MARGIN_TOP_2
On the upper side of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_TOP_3
For all screen sizes, a 3 unit thick margin is set on the upper side of the component.- Returns:
- Margin class
-
MARGIN_TOP_3
On the upper side of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_TOP_4
For all screen sizes, a 4 unit thick margin is set on the upper side of the component.- Returns:
- Margin class
-
MARGIN_TOP_4
On the upper side of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_TOP_5
For all screen sizes, a 5 unit thick margin is set on the upper side of the component.- Returns:
- Margin class
-
MARGIN_TOP_5
On the upper side of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_BOTTOM_0
On the lower side of the component, no margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_BOTTOM_0
On the lower side of the component, no margin is set for the specified screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_BOTTOM_1
A 1 unit thick margin is set on the lower side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_BOTTOM_1
On the lower side of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_BOTTOM_2
On the lower side of the component, a 2 unit thick margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_BOTTOM_2
On the lower side of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_BOTTOM_3
On the lower side of the component, a 3 unit thick margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_BOTTOM_3
On the lower side of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_BOTTOM_4
On the lower side of the component, a 4 unit thick margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_BOTTOM_4
On the lower side of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_BOTTOM_5
On the lower side of the component, a 5 unit thick margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_BOTTOM_5
On the lower side of the component, a 5 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_LEFT_0
On the left side of the component, no margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_LEFT_0
On the left side of the component, no margin is set for the specified screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_LEFT_1
A 1 unit thick margin is set on the left side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_LEFT_1
On the left side of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_LEFT_2
A 2 unit thick margin is set on the left side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_LEFT_2
On the left side of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_LEFT_3
A 3 unit thick margin is set on the left side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_LEFT_3
On the left side of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_LEFT_4
A 4 unit thick margin is set on the left side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_LEFT_4
On the left side of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_LEFT_5
A 5 unit thick margin is set on the left side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_LEFT_5
On the left side of the component, a 5 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_RIGHT_0
On the right side of the component, no margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_RIGHT_0
On the right side of the component, no margin is set for the specified screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_RIGHT_1
A 1 unit thick margin is set on the right side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_RIGHT_1
On the right side of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_RIGHT_2
A 2 unit thick margin is set on the right side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_RIGHT_2
On the right side of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_RIGHT_3
A 3 unit thick margin is set on the right side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_RIGHT_3
On the right side of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_RIGHT_4
A 4 unit thick margin is set on the right side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_RIGHT_4
On the right side of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_RIGHT_5
A 5 unit thick margin is set on the right side of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_RIGHT_5
On the right side of the component, a 5 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_0
On the right and left sides of the component, no margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_0
On the right and left sides of the component, no margin is set for the specified screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_1
A 1 unit thick margin is set on the right and left sides of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_1
On the right and left sides of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_2
A 2 unit thick margin is set on the right and left sides of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_2
On the right and left sides of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_3
A 3 unit thick margin is set on the right and left sides of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_3
On the right and left sides of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_4
A 4 unit thick margin is set on the right and left sides of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_4
On the right and left sides of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_5
A 5 unit thick margin is set on the right and left sides of the component for all screen sizes.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_5
On the right and left sides of the component, a 5 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_VERTICAL_0
On the lower and upper sidess of the component, no margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_VERTICAL_0
On the lower and upper sidess of the component, no margin is set for the specified screen size.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_VERTICAL_1
On the lower and upper sides of the component, a 1 unit thick margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_VERTICAL_1
On the lower and upper sides of the component, a 1 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_VERTICAL_2
On the lower and upper sides of the component, a 2 unit thick margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_VERTICAL_2
On the lower and upper sides of the component, a 2 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_VERTICAL_3
On the lower and upper sides of the component, a 3 unit thick margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_VERTICAL_3
On the lower and upper sides of the component, a 3 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_VERTICAL_4
On the lower and upper sides of the component, a 4 unit thick margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_VERTICAL_4
On the lower and upper sides of the component, a 4 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_VERTICAL_5
On the lower and upper sides of the component, a 5 unit thick margin is set for all screen sizes.- Returns:
- Margin class
-
MARGIN_VERTICAL_5
On the lower and upper sides of the component, a 5 unit thick margin is set for the specified or bigger screen sizes.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_TOP_AUTO
For all screen sizes, automatic margin is set on the top of the component.- Returns:
- Margin class
-
MARGIN_TOP_AUTO
For all screen sizes, automatic margin is set on the top of the component.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_BOTTOM_AUTO
For all screen sizes, automatic margin is set on the bottom of the component.- Returns:
- Margin class
-
MARGIN_BOTTOM_AUTO
For all screen sizes, automatic margin is set on the bottom of the component.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_LEFT_AUTO
For all screen sizes, automatic margin is set on the left side of the component.- Returns:
- Margin class
-
MARGIN_LEFT_AUTO
For all screen sizes, automatic margin is set on the left side of the component.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_RIGHT_AUTO
For all screen sizes, automatic margin is set on the right side of the component.- Returns:
- Margin class
-
MARGIN_RIGHT_AUTO
For all screen sizes, automatic margin is set on the right side of the component.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_AUTO
For all screen sizes, automatic margin is set on the left and right sides of the component.- Returns:
- Margin class
-
MARGIN_HORIZONTAL_AUTO
For all screen sizes, automatic margin is set on the right side of the component.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
MARGIN_VERTICAL_AUTO
For all screen sizes, automatic margin is set on the top and bottom sides of the component.- Returns:
- Margin class
-
MARGIN_VERTICAL_AUTO
For all screen sizes, automatic margin is set on the top and bottom sides of the component.- Parameters:
screenSize
- Screen size for the margin setting Available screen sizes are listed in theScreenSize
enum.- Returns:
- Margin class
-
apply
- Specified by:
apply
in interfaceStyleElement
- Parameters:
component
- The component
-
remove
- Specified by:
remove
in interfaceStyleElement
- Parameters:
component
- The component
-
getStyleClassName
- Specified by:
getStyleClassName
in interfaceStyleElement
- Returns:
- The style class name or
null
if is not style class for the style settings
-
removeAllMarginSettings
-