Class ColumnOffset

java.lang.Object
com.jbstrap.ui.bootstrap.ColumnOffset

public final class ColumnOffset extends Object
JBStrap’s supported column offsets.
Since:
4.0
Author:
JBStrap
  • Method Details

    • NONE

      public static ColumnOffset NONE()
      The column has no offset on any screen.
      Returns:
      Column offset
    • NONE

      public static ColumnOffset NONE(ScreenSize screenSize)
      The column has no offset on any screen.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • ONE_TWELFTH

      public static ColumnOffset ONE_TWELFTH()
      The column offset is 1/12 on all screens.
      Returns:
      Column offset
    • ONE_TWELFTH

      public static ColumnOffset ONE_TWELFTH(ScreenSize screenSize)
      Column offset is 1/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • TWO_TWELFTH

      public static ColumnOffset TWO_TWELFTH()
      The column offset is 2/12 on all screens.
      Returns:
      Column offset
    • TWO_TWELFTH

      public static ColumnOffset TWO_TWELFTH(ScreenSize screenSize)
      Column offset is 2/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • THREE_TWELFTH

      public static ColumnOffset THREE_TWELFTH()
      The column offset is 3/12 on all screens.
      Returns:
      Column offset
    • THREE_TWELFTH

      public static ColumnOffset THREE_TWELFTH(ScreenSize screenSize)
      Column offset is 3/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • FOUR_TWELFTH

      public static ColumnOffset FOUR_TWELFTH()
      The column offset is 4/12 on all screens.
      Returns:
      Column offset
    • FOUR_TWELFTH

      public static ColumnOffset FOUR_TWELFTH(ScreenSize screenSize)
      Column offset is 4/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • FIVE_TWELFTH

      public static ColumnOffset FIVE_TWELFTH()
      The column offset is 5/12 on all screens.
      Returns:
      Column offset
    • FIVE_TWELFTH

      public static ColumnOffset FIVE_TWELFTH(ScreenSize screenSize)
      Column offset is 5/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • SIX_TWELFTH

      public static ColumnOffset SIX_TWELFTH()
      The column offset is 6/12 on all screens.
      Returns:
      Column offset
    • SIX_TWELFTH

      public static ColumnOffset SIX_TWELFTH(ScreenSize screenSize)
      Column offset is 6/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • SEVEN_TWELFTH

      public static ColumnOffset SEVEN_TWELFTH()
      The column offset is 7/12 on all screens.
      Returns:
      Column offset
    • SEVEN_TWELFTH

      public static ColumnOffset SEVEN_TWELFTH(ScreenSize screenSize)
      Column offset is 7/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • EIGHT_TWELFTH

      public static ColumnOffset EIGHT_TWELFTH()
      The column offset is 8/12 on all screens.
      Returns:
      Column offset
    • EIGHT_TWELFTH

      public static ColumnOffset EIGHT_TWELFTH(ScreenSize screenSize)
      Column offset is 8/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • NINE_TWELFTH

      public static ColumnOffset NINE_TWELFTH()
      The column offset is 9/12 on all screens.
      Returns:
      Column offset
    • NINE_TWELFTH

      public static ColumnOffset NINE_TWELFTH(ScreenSize screenSize)
      Column offset is 9/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • TEN_TWELFTH

      public static ColumnOffset TEN_TWELFTH()
      The column offset is 10/12 on all screens.
      Returns:
      Column offset
    • TEN_TWELFTH

      public static ColumnOffset TEN_TWELFTH(ScreenSize screenSize)
      Column offset is 10/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • ELEVEN_TWELFTH

      public static ColumnOffset ELEVEN_TWELFTH()
      The column offset is 11/12 on all screens.
      Returns:
      Column offset
    • ELEVEN_TWELFTH

      public static ColumnOffset ELEVEN_TWELFTH(ScreenSize screenSize)
      Column offset is 11/12 for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column offset
    • apply

      public void apply(Column component)
      Parameters:
      component - The component
    • Remove

      public void Remove(Column component)
      Parameters:
      component - The component
    • removeAllColumnOffsetSettings

      public static void removeAllColumnOffsetSettings(Component<?> component)
      Removes all column offset.
      Parameters:
      component - Column component instance