Class ColumnSize

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

public final class ColumnSize extends Object
Supported column width settings.
Since:
4.0
Author:
JBStrap
  • Method Details

    • AUTO

      public static ColumnSize AUTO()
      Column width is automatically calculated so that all columns in a row would be of uniform size. The settings applies to all screen sizes.
      Returns:
      Column width
    • AUTO

      public static ColumnSize AUTO(ScreenSize screenSize)
      Column width is automatically calculated for the specified and all screen sizes so that all columns in a row would be of uniform size. The settings applies to all screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column width
    • ONE_TWELFTH

      public static ColumnSize ONE_TWELFTH()
      Column width is 1/12 for all screen sizes.
      Returns:
      Column width
    • ONE_TWELFTH

      public static ColumnSize ONE_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • TWO_TWELFTH

      public static ColumnSize TWO_TWELFTH()
      Column width is 2/12 for all screen sizes.
      Returns:
      Column width
    • TWO_TWELFTH

      public static ColumnSize TWO_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • THREE_TWELFTH

      public static ColumnSize THREE_TWELFTH()
      Column width is 3/12 for all screen sizes.
      Returns:
      Column width
    • THREE_TWELFTH

      public static ColumnSize THREE_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • FOUR_TWELFTH

      public static ColumnSize FOUR_TWELFTH()
      Column width is 4/12 for all screen sizes.
      Returns:
      Column width
    • FOUR_TWELFTH

      public static ColumnSize FOUR_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • FIVE_TWELFTH

      public static ColumnSize FIVE_TWELFTH()
      Column width is 5/12 for all screen sizes.
      Returns:
      Column width
    • FIVE_TWELFTH

      public static ColumnSize FIVE_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • SIX_TWELFTH

      public static ColumnSize SIX_TWELFTH()
      Column width is 6/12 for all screen sizes.
      Returns:
      Column width
    • SIX_TWELFTH

      public static ColumnSize SIX_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • SEVEN_TWELFTH

      public static ColumnSize SEVEN_TWELFTH()
      Column width is 7/12 for all screen sizes.
      Returns:
      Column width
    • SEVEN_TWELFTH

      public static ColumnSize SEVEN_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • EIGHT_TWELFTH

      public static ColumnSize EIGHT_TWELFTH()
      Column width is 8/12 for all screen sizes.
      Returns:
      Column width
    • EIGHT_TWELFTH

      public static ColumnSize EIGHT_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • NINE_TWELFTH

      public static ColumnSize NINE_TWELFTH()
      Column width is 9/12 for all screen sizes.
      Returns:
      Column width
    • NINE_TWELFTH

      public static ColumnSize NINE_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • TEN_TWELFTH

      public static ColumnSize TEN_TWELFTH()
      Column width is 10/12 for all screen sizes.
      Returns:
      Column width
    • TEN_TWELFTH

      public static ColumnSize TEN_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • ELEVEN_TWELFTH

      public static ColumnSize ELEVEN_TWELFTH()
      Column width is 11/12 for all screen sizes.
      Returns:
      Column width
    • ELEVEN_TWELFTH

      public static ColumnSize ELEVEN_TWELFTH(ScreenSize screenSize)
      Column width 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 width
    • FULL_WIDTH

      public static ColumnSize FULL_WIDTH()
      Column width is full width for all screen sizes.
      Returns:
      Column width
    • FULL_WIDTH

      public static ColumnSize FULL_WIDTH(ScreenSize screenSize)
      Column width is full width for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column width
    • CONTENT_WIDTH

      public static ColumnSize CONTENT_WIDTH()
      The column width fits the column’s content for all screen sizes.
      Returns:
      Column width
    • CONTENT_WIDTH

      public static ColumnSize CONTENT_WIDTH(ScreenSize screenSize)
      Column width fits the column’s content for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size Available screen sizes are listed in the ScreenSize enum.
      Returns:
      Column width
    • apply

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

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

      public static void removeAllColumnSizeSettings(Component<?> component)
      Removes all column width settings from the specified column.
      Parameters:
      component - Column instance