Class Margin

java.lang.Object
com.jbstrap.ui.bootstrap.Margin
All Implemented Interfaces:
StyleElement

public final class Margin extends Object implements 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 Type
    Method
    Description
    void
    apply(Component<?> component)
     
     
    static Margin
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    For all screen sizes, automatic margin is set on the top and bottom sides of the component.
    void
    remove(Component<?> component)
     
    static void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • MARGIN_0

      public static Margin MARGIN_0()
      For all screen types, padding is removed from all sides of the component.
      Returns:
      Margin class
    • MARGIN_0

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_1

      public static Margin MARGIN_1()
      For all screen sizes, a 1 unit thick margin is set on every side of the component.
      Returns:
      Margin class
    • MARGIN_1

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_2

      public static Margin MARGIN_2()
      For all screen sizes, a 2 units thick margin is set on every side of the component.
      Returns:
      Margin class
    • MARGIN_2

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_3

      public static Margin MARGIN_3()
      For all screen sizes, a 3 units thick margin is set on every side of the component.
      Returns:
      Margin class
    • MARGIN_3

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_4

      public static Margin MARGIN_4()
      For all screen sizes, a 4 units thick margin is set on every side of the component.
      Returns:
      Margin class
    • MARGIN_4

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_5

      public static Margin MARGIN_5()
      For all screen sizes, a 5 units thick margin is set on every side of the component.
      Returns:
      Margin class
    • MARGIN_5

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_TOP_0

      public static Margin 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

      public static Margin MARGIN_TOP_0(ScreenSize screenSize)
      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 the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_TOP_1

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_TOP_2

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_TOP_3

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_TOP_4

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_TOP_5

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_BOTTOM_0

      public static Margin MARGIN_BOTTOM_0()
      On the lower side of the component, no margin is set for all screen sizes.
      Returns:
      Margin class
    • MARGIN_BOTTOM_0

      public static Margin MARGIN_BOTTOM_0(ScreenSize screenSize)
      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 the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_BOTTOM_1

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_BOTTOM_2

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_BOTTOM_3

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_BOTTOM_4

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_BOTTOM_5

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_LEFT_0

      public static Margin MARGIN_LEFT_0()
      On the left side of the component, no margin is set for all screen sizes.
      Returns:
      Margin class
    • MARGIN_LEFT_0

      public static Margin MARGIN_LEFT_0(ScreenSize screenSize)
      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 the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_LEFT_1

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_LEFT_2

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_LEFT_3

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_LEFT_4

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_LEFT_5

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_RIGHT_0

      public static Margin MARGIN_RIGHT_0()
      On the right side of the component, no margin is set for all screen sizes.
      Returns:
      Margin class
    • MARGIN_RIGHT_0

      public static Margin MARGIN_RIGHT_0(ScreenSize screenSize)
      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 the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_RIGHT_1

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_RIGHT_2

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_RIGHT_3

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_RIGHT_4

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_RIGHT_5

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_HORIZONTAL_0

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_HORIZONTAL_1

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_HORIZONTAL_2

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_HORIZONTAL_3

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_HORIZONTAL_4

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_HORIZONTAL_5

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_VERTICAL_0

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_VERTICAL_1

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_VERTICAL_2

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_VERTICAL_3

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_VERTICAL_4

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_VERTICAL_5

      public static Margin 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

      public 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.
      Parameters:
      screenSize - Screen size for the margin setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_TOP_AUTO

      public static Margin MARGIN_TOP_AUTO()
      For all screen sizes, automatic margin is set on the top of the component.
      Returns:
      Margin class
    • MARGIN_TOP_AUTO

      public static Margin MARGIN_TOP_AUTO(ScreenSize screenSize)
      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 the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_BOTTOM_AUTO

      public static Margin MARGIN_BOTTOM_AUTO()
      For all screen sizes, automatic margin is set on the bottom of the component.
      Returns:
      Margin class
    • MARGIN_BOTTOM_AUTO

      public static Margin MARGIN_BOTTOM_AUTO(ScreenSize screenSize)
      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 the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_LEFT_AUTO

      public static Margin MARGIN_LEFT_AUTO()
      For all screen sizes, automatic margin is set on the left side of the component.
      Returns:
      Margin class
    • MARGIN_LEFT_AUTO

      public static Margin MARGIN_LEFT_AUTO(ScreenSize screenSize)
      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 the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_RIGHT_AUTO

      public static Margin MARGIN_RIGHT_AUTO()
      For all screen sizes, automatic margin is set on the right side of the component.
      Returns:
      Margin class
    • MARGIN_RIGHT_AUTO

      public static Margin MARGIN_RIGHT_AUTO(ScreenSize screenSize)
      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 the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_HORIZONTAL_AUTO

      public static Margin 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

      public static Margin MARGIN_HORIZONTAL_AUTO(ScreenSize screenSize)
      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 the ScreenSize enum.
      Returns:
      Margin class
    • MARGIN_VERTICAL_AUTO

      public static Margin 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

      public static Margin MARGIN_VERTICAL_AUTO(ScreenSize screenSize)
      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 the ScreenSize enum.
      Returns:
      Margin class
    • apply

      public void apply(Component<?> component)
      Specified by:
      apply in interface StyleElement
      Parameters:
      component - The component
    • remove

      public void remove(Component<?> component)
      Specified by:
      remove in interface StyleElement
      Parameters:
      component - The component
    • getStyleClassName

      public String getStyleClassName()
      Specified by:
      getStyleClassName in interface StyleElement
      Returns:
      The style class name or null if is not style class for the style settings
    • removeAllMarginSettings

      public static void removeAllMarginSettings(Component<?> component)