Class Padding

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

public final class Padding extends Object implements StyleElement

Available paddings

The paddings 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 Padding
    For all screen types, padding is removed from all sides of the component.
    static Padding
    PADDING_0(ScreenSize screenSize)
    No padding is set on one side of the component in case of the specified screen size or a bigger screen size.
    static Padding
    For all screen sizes, a 1 unit thick padding is set on every side of the component.
    static Padding
    PADDING_1(ScreenSize screenSize)
    On all sides of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 2 unit thick padding is set on every side of the component.
    static Padding
    PADDING_2(ScreenSize screenSize)
    On all sides of the component, a 2 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 3 unit thick padding is set on every side of the component.
    static Padding
    PADDING_3(ScreenSize screenSize)
    On all sides of the component, a 3 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 4 unit thick padding is set on every side of the component.
    static Padding
    PADDING_4(ScreenSize screenSize)
    On all sides of the component, a 4 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 5 unit thick padding is set on every side of the component.
    static Padding
    PADDING_5(ScreenSize screenSize)
    On all sides of the component, a 5 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, there is no padding set for the lower side of the component.
    static Padding
    For the specified screen size, there is no padding set for the lower side of the component.
    static Padding
    For all screen sizes, a 1 unit thick padding is set on the lower side of the component.
    static Padding
    On the lower side of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 2 unit thick padding is set on the lower side of the component.
    static Padding
    On the lower side of the component, a 2 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 3 unit thick padding is set on the lower side of the component.
    static Padding
    On the lower side of the component, a 3 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 4 unit thick padding is set on the lower side of the component.
    static Padding
    On the lower side of the component, a 4 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 5 unit thick padding is set on the lower side of the component.
    static Padding
    On the lower side of the component, a 5 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    On the right and left sides of the component, no padding is set for all screen sizes.
    static Padding
    On the right and left sides of the component, no padding is set for the specified screen size.
    static Padding
    A 1 unit thick padding is set on the right and left sides of the component for all screen sizes.
    static Padding
    On the right and left sides of the component, a 1 unit thick padding is set for the specified or bigger screen sizes.
    static Padding
    A 2 unit thick padding is set on the right and left sides of the component for all screen sizes.
    static Padding
    On the right and left sides of the component, a 2 unit thick padding is set for the specified or bigger screen sizes.
    static Padding
    A 3 unit thick padding is set on the right and left sides of the component for all screen sizes.
    static Padding
    On the right and left sides of the component, a 3 unit thick padding is set for the specified or bigger screen sizes.
    static Padding
    A 4 unit thick padding is set on the right and left sides of the component for all screen sizes.
    static Padding
    On the right and left sides of the component, a 4 unit thick padding is set for the specified or bigger screen sizes.
    static Padding
    A 5 unit thick padding is set on the right and left sides of the component for all screen sizes.
    static Padding
    On the right and left sides of the component, a 5 unit thick padding is set for the specified or bigger screen sizes.
    static Padding
    For all screen sizes, there is no padding set for the left side of the component.
    static Padding
    For the specified screen size, there is no padding set for the left side of the component.
    static Padding
    For all screen sizes, a 1 unit thick padding is set on the left side of the component.
    static Padding
    On the left side of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 2 unit thick padding is set on the left side of the component.
    static Padding
    On the left side of the component, a 2 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 3 unit thick padding is set on the left side of the component.
    static Padding
    On the left side of the component, a 3 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 4 unit thick padding is set on the left side of the component.
    static Padding
    On the left side of the component, a 4 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 5 unit thick padding is set on the left side of the component.
    static Padding
    On the left side of the component, a 5 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, there is no padding set for the right side of the component.
    static Padding
    For the specified screen size, there is no padding set for the right side of the component.
    static Padding
    For all screen sizes, a 1 unit thick padding is set on the right side of the component.
    static Padding
    On the right side of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 2 unit thick padding is set on the right side of the component.
    static Padding
    On the right side of the component, a 2 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 3 unit thick padding is set on the right side of the component.
    static Padding
    On the right side of the component, a 3 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 4 unit thick padding is set on the right side of the component.
    static Padding
    On the right side of the component, a 4 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 5 unit thick padding is set on the right side of the component.
    static Padding
    On the right side of the component, a 5 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, there is no padding set for the upper side of the component.
    static Padding
    For the specified screen size, there is no padding set for the upper side of the component.
    static Padding
    For all screen sizes, a 1 unit thick padding is set on the top of the component.
    static Padding
    On the upper side of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 2 unit thick padding is set on every side of the component.
    static Padding
    On the upper side of the component, a 2 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 3 unit thick padding is set on every side of the component.
    static Padding
    On the upper side of the component, a 3 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 4 unit thick padding is set on the upper side of the component.
    static Padding
    On the upper side of the component, a 4 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    For all screen sizes, a 5 unit thick padding is set on the upper side of the component.
    static Padding
    On the upper side of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
    static Padding
    On the lower and upper sides of the component, no padding is set for all screen sizes.
    static Padding
    On the lower and upper sides of the component, no padding is set for the specified screen size.
    static Padding
    On the lower and upper sides of the component, a 1 unit thick padding is set for all screen sizes.
    static Padding
    On the lower and upper sides of the component, a 1 unit thick padding is set for the specified or bigger screen sizes.
    static Padding
    On the lower and upper sides of the component, a 2 unit thick padding is set for all screen sizes.
    static Padding
    On the lower and upper sides of the component, a 2 unit thick padding is set for the specified or bigger screen sizes.
    static Padding
    On the lower and upper sides of the component, a 3 unit thick padding is set for all screen sizes.
    static Padding
    On the lower and upper sides of the component, a 3 unit thick padding is set for the specified or bigger screen sizes.
    static Padding
    On the lower and upper sides of the component, a 4 unit thick padding is set for all screen sizes.
    static Padding
    On the lower and upper sides of the component, a 4 unit thick padding is set for the specified or bigger screen sizes.
    static Padding
    On the lower and upper sides of the component, a 5 unit thick padding is set for all screen sizes.
    static Padding
    On the lower and upper sides of the component, a 5 unit thick padding is set for the specified or bigger screen sizes.
    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

    • PADDING_0

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

      public static Padding PADDING_0(ScreenSize screenSize)
      No padding 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 padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_1

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

      public static Padding PADDING_1(ScreenSize screenSize)
      On all sides of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_2

      public static Padding PADDING_2()
      For all screen sizes, a 2 unit thick padding is set on every side of the component.
      Returns:
      Padding class
    • PADDING_2

      public static Padding PADDING_2(ScreenSize screenSize)
      On all sides of the component, a 2 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_3

      public static Padding PADDING_3()
      For all screen sizes, a 3 unit thick padding is set on every side of the component.
      Returns:
      Padding class
    • PADDING_3

      public static Padding PADDING_3(ScreenSize screenSize)
      On all sides of the component, a 3 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_4

      public static Padding PADDING_4()
      For all screen sizes, a 4 unit thick padding is set on every side of the component.
      Returns:
      Padding class
    • PADDING_4

      public static Padding PADDING_4(ScreenSize screenSize)
      On all sides of the component, a 4 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_5

      public static Padding PADDING_5()
      For all screen sizes, a 5 unit thick padding is set on every side of the component.
      Returns:
      Padding class
    • PADDING_5

      public static Padding PADDING_5(ScreenSize screenSize)
      On all sides of the component, a 5 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_TOP_0

      public static Padding PADDING_TOP_0()
      For all screen sizes, there is no padding set for the upper side of the component.
      Returns:
      Padding class
    • PADDING_TOP_0

      public static Padding PADDING_TOP_0(ScreenSize screenSize)
      For the specified screen size, there is no padding set for the upper side of the component.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_TOP_1

      public static Padding PADDING_TOP_1()
      For all screen sizes, a 1 unit thick padding is set on the top of the component.
      Returns:
      Padding class
    • PADDING_TOP_1

      public static Padding PADDING_TOP_1(ScreenSize screenSize)
      On the upper side of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_TOP_2

      public static Padding PADDING_TOP_2()
      For all screen sizes, a 2 unit thick padding is set on every side of the component.
      Returns:
      Padding class
    • PADDING_TOP_2

      public static Padding PADDING_TOP_2(ScreenSize screenSize)
      On the upper side of the component, a 2 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_TOP_3

      public static Padding PADDING_TOP_3()
      For all screen sizes, a 3 unit thick padding is set on every side of the component.
      Returns:
      Padding class
    • PADDING_TOP_3

      public static Padding PADDING_TOP_3(ScreenSize screenSize)
      On the upper side of the component, a 3 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_TOP_4

      public static Padding PADDING_TOP_4()
      For all screen sizes, a 4 unit thick padding is set on the upper side of the component.
      Returns:
      Padding class
    • PADDING_TOP_4

      public static Padding PADDING_TOP_4(ScreenSize screenSize)
      On the upper side of the component, a 4 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_TOP_5

      public static Padding PADDING_TOP_5()
      For all screen sizes, a 5 unit thick padding is set on the upper side of the component.
      Returns:
      Padding class
    • PADDING_TOP_5

      public static Padding PADDING_TOP_5(ScreenSize screenSize)
      On the upper side of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_BOTTOM_0

      public static Padding PADDING_BOTTOM_0()
      For all screen sizes, there is no padding set for the lower side of the component.
      Returns:
      Padding class
    • PADDING_BOTTOM_0

      public static Padding PADDING_BOTTOM_0(ScreenSize screenSize)
      For the specified screen size, there is no padding set for the lower side of the component.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_BOTTOM_1

      public static Padding PADDING_BOTTOM_1()
      For all screen sizes, a 1 unit thick padding is set on the lower side of the component.
      Returns:
      Padding class
    • PADDING_BOTTOM_1

      public static Padding PADDING_BOTTOM_1(ScreenSize screenSize)
      On the lower side of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_BOTTOM_2

      public static Padding PADDING_BOTTOM_2()
      For all screen sizes, a 2 unit thick padding is set on the lower side of the component.
      Returns:
      Padding class
    • PADDING_BOTTOM_2

      public static Padding PADDING_BOTTOM_2(ScreenSize screenSize)
      On the lower side of the component, a 2 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_BOTTOM_3

      public static Padding PADDING_BOTTOM_3()
      For all screen sizes, a 3 unit thick padding is set on the lower side of the component.
      Returns:
      Padding class
    • PADDING_BOTTOM_3

      public static Padding PADDING_BOTTOM_3(ScreenSize screenSize)
      On the lower side of the component, a 3 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_BOTTOM_4

      public static Padding PADDING_BOTTOM_4()
      For all screen sizes, a 4 unit thick padding is set on the lower side of the component.
      Returns:
      Padding class
    • PADDING_BOTTOM_4

      public static Padding PADDING_BOTTOM_4(ScreenSize screenSize)
      On the lower side of the component, a 4 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_BOTTOM_5

      public static Padding PADDING_BOTTOM_5()
      For all screen sizes, a 5 unit thick padding is set on the lower side of the component.
      Returns:
      Padding class
    • PADDING_BOTTOM_5

      public static Padding PADDING_BOTTOM_5(ScreenSize screenSize)
      On the lower side of the component, a 5 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_LEFT_0

      public static Padding PADDING_LEFT_0()
      For all screen sizes, there is no padding set for the left side of the component.
      Returns:
      Padding class
    • PADDING_LEFT_0

      public static Padding PADDING_LEFT_0(ScreenSize screenSize)
      For the specified screen size, there is no padding set for the left side of the component.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_LEFT_1

      public static Padding PADDING_LEFT_1()
      For all screen sizes, a 1 unit thick padding is set on the left side of the component.
      Returns:
      Padding class
    • PADDING_LEFT_1

      public static Padding PADDING_LEFT_1(ScreenSize screenSize)
      On the left side of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_LEFT_2

      public static Padding PADDING_LEFT_2()
      For all screen sizes, a 2 unit thick padding is set on the left side of the component.
      Returns:
      Padding class
    • PADDING_LEFT_2

      public static Padding PADDING_LEFT_2(ScreenSize screenSize)
      On the left side of the component, a 2 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_LEFT_3

      public static Padding PADDING_LEFT_3()
      For all screen sizes, a 3 unit thick padding is set on the left side of the component.
      Returns:
      Padding class
    • PADDING_LEFT_3

      public static Padding PADDING_LEFT_3(ScreenSize screenSize)
      On the left side of the component, a 3 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_LEFT_4

      public static Padding PADDING_LEFT_4()
      For all screen sizes, a 4 unit thick padding is set on the left side of the component.
      Returns:
      Padding class
    • PADDING_LEFT_4

      public static Padding PADDING_LEFT_4(ScreenSize screenSize)
      On the left side of the component, a 4 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_LEFT_5

      public static Padding PADDING_LEFT_5()
      For all screen sizes, a 5 unit thick padding is set on the left side of the component.
      Returns:
      Padding class
    • PADDING_LEFT_5

      public static Padding PADDING_LEFT_5(ScreenSize screenSize)
      On the left side of the component, a 5 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_RIGHT_0

      public static Padding PADDING_RIGHT_0()
      For all screen sizes, there is no padding set for the right side of the component.
      Returns:
      Padding class
    • PADDING_RIGHT_0

      public static Padding PADDING_RIGHT_0(ScreenSize screenSize)
      For the specified screen size, there is no padding set for the right side of the component.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_RIGHT_1

      public static Padding PADDING_RIGHT_1()
      For all screen sizes, a 1 unit thick padding is set on the right side of the component.
      Returns:
      Padding class
    • PADDING_RIGHT_1

      public static Padding PADDING_RIGHT_1(ScreenSize screenSize)
      On the right side of the component, a 1 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_RIGHT_2

      public static Padding PADDING_RIGHT_2()
      For all screen sizes, a 2 unit thick padding is set on the right side of the component.
      Returns:
      Padding class
    • PADDING_RIGHT_2

      public static Padding PADDING_RIGHT_2(ScreenSize screenSize)
      On the right side of the component, a 2 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_RIGHT_3

      public static Padding PADDING_RIGHT_3()
      For all screen sizes, a 3 unit thick padding is set on the right side of the component.
      Returns:
      Padding class
    • PADDING_RIGHT_3

      public static Padding PADDING_RIGHT_3(ScreenSize screenSize)
      On the right side of the component, a 3 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_RIGHT_4

      public static Padding PADDING_RIGHT_4()
      For all screen sizes, a 4 unit thick padding is set on the right side of the component.
      Returns:
      Padding class
    • PADDING_RIGHT_4

      public static Padding PADDING_RIGHT_4(ScreenSize screenSize)
      On the right side of the component, a 4 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_RIGHT_5

      public static Padding PADDING_RIGHT_5()
      For all screen sizes, a 5 unit thick padding is set on the right side of the component.
      Returns:
      Padding class
    • PADDING_RIGHT_5

      public static Padding PADDING_RIGHT_5(ScreenSize screenSize)
      On the right side of the component, a 5 unit thick padding is set in case of the specified or bigger screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_0

      public static Padding PADDING_HORIZONTAL_0()
      On the right and left sides of the component, no padding is set for all screen sizes.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_0

      public static Padding PADDING_HORIZONTAL_0(ScreenSize screenSize)
      On the right and left sides of the component, no padding is set for the specified screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_1

      public static Padding PADDING_HORIZONTAL_1()
      A 1 unit thick padding is set on the right and left sides of the component for all screen sizes.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_1

      public static Padding PADDING_HORIZONTAL_1(ScreenSize screenSize)
      On the right and left sides of the component, a 1 unit thick padding is set for the specified or bigger screen sizes.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_2

      public static Padding PADDING_HORIZONTAL_2()
      A 2 unit thick padding is set on the right and left sides of the component for all screen sizes.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_2

      public static Padding PADDING_HORIZONTAL_2(ScreenSize screenSize)
      On the right and left sides of the component, a 2 unit thick padding is set for the specified or bigger screen sizes.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_3

      public static Padding PADDING_HORIZONTAL_3()
      A 3 unit thick padding is set on the right and left sides of the component for all screen sizes.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_3

      public static Padding PADDING_HORIZONTAL_3(ScreenSize screenSize)
      On the right and left sides of the component, a 3 unit thick padding is set for the specified or bigger screen sizes.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_4

      public static Padding PADDING_HORIZONTAL_4()
      A 4 unit thick padding is set on the right and left sides of the component for all screen sizes.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_4

      public static Padding PADDING_HORIZONTAL_4(ScreenSize screenSize)
      On the right and left sides of the component, a 4 unit thick padding is set for the specified or bigger screen sizes.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_5

      public static Padding PADDING_HORIZONTAL_5()
      A 5 unit thick padding is set on the right and left sides of the component for all screen sizes.
      Returns:
      Padding class
    • PADDING_HORIZONTAL_5

      public static Padding PADDING_HORIZONTAL_5(ScreenSize screenSize)
      On the right and left sides of the component, a 5 unit thick padding is set for the specified or bigger screen sizes.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_VERTICAL_0

      public static Padding PADDING_VERTICAL_0()
      On the lower and upper sides of the component, no padding is set for all screen sizes.
      Returns:
      Padding class
    • PADDING_VERTICAL_0

      public static Padding PADDING_VERTICAL_0(ScreenSize screenSize)
      On the lower and upper sides of the component, no padding is set for the specified screen size.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_VERTICAL_1

      public static Padding PADDING_VERTICAL_1()
      On the lower and upper sides of the component, a 1 unit thick padding is set for all screen sizes.
      Returns:
      Padding class
    • PADDING_VERTICAL_1

      public static Padding PADDING_VERTICAL_1(ScreenSize screenSize)
      On the lower and upper sides of the component, a 1 unit thick padding is set for the specified or bigger screen sizes.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_VERTICAL_2

      public static Padding PADDING_VERTICAL_2()
      On the lower and upper sides of the component, a 2 unit thick padding is set for all screen sizes.
      Returns:
      Padding class
    • PADDING_VERTICAL_2

      public static Padding PADDING_VERTICAL_2(ScreenSize screenSize)
      On the lower and upper sides of the component, a 2 unit thick padding is set for the specified or bigger screen sizes.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_VERTICAL_3

      public static Padding PADDING_VERTICAL_3()
      On the lower and upper sides of the component, a 3 unit thick padding is set for all screen sizes.
      Returns:
      Padding class
    • PADDING_VERTICAL_3

      public static Padding PADDING_VERTICAL_3(ScreenSize screenSize)
      On the lower and upper sides of the component, a 3 unit thick padding is set for the specified or bigger screen sizes.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_VERTICAL_4

      public static Padding PADDING_VERTICAL_4()
      On the lower and upper sides of the component, a 4 unit thick padding is set for all screen sizes.
      Returns:
      Padding class
    • PADDING_VERTICAL_4

      public static Padding PADDING_VERTICAL_4(ScreenSize screenSize)
      On the lower and upper sides of the component, a 4 unit thick padding is set for the specified or bigger screen sizes.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding class
    • PADDING_VERTICAL_5

      public static Padding PADDING_VERTICAL_5()
      On the lower and upper sides of the component, a 5 unit thick padding is set for all screen sizes.
      Returns:
      Padding class
    • PADDING_VERTICAL_5

      public static Padding PADDING_VERTICAL_5(ScreenSize screenSize)
      On the lower and upper sides of the component, a 5 unit thick padding is set for the specified or bigger screen sizes.
      Parameters:
      screenSize - Screen size for the padding setting Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Padding 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
    • removeAllPaddingSettings

      public static void removeAllPaddingSettings(Component<?> component)