Class DisplayType

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

public final class DisplayType extends Object implements StyleElement
Component display types.
Since:
4.0
Author:
JBStrap
  • Method Details

    • NONE

      public static DisplayType NONE()
      Hides the component for all screen sizes.
      Returns:
      Display type object
    • INLINE

      public static DisplayType INLINE()
      In-line display setting of the component for all screen sizes.
      Returns:
      Display type object
    • INLINE_BLOCK

      public static DisplayType INLINE_BLOCK()
      Displays the component in a row in case of a block component for all screen sizes.
      Returns:
      Display type object
    • BLOCK

      public static DisplayType BLOCK()
      Displays the component as a block component for all screen sizes. This is the browser’s default display setting.
      Returns:
      Display type object
    • TABLE

      public static DisplayType TABLE()
      Display the component as a table for all screen sizes.
      Returns:
      Display type object
    • TABLE_CELL

      public static DisplayType TABLE_CELL()
      Display the component as a table cell for all screen sizes.
      Returns:
      Display type object
    • TABLE_ROW

      public static DisplayType TABLE_ROW()
      Displays the component as a table row for all screen sizes.
      Returns:
      Display type object
    • FLEX

      public static DisplayType FLEX()
      Flexible component display setting for all screen sizes.
      Returns:
      Display type object
    • INLINE_FLEX

      public static DisplayType INLINE_FLEX()
      Flexible in-line display setting of the component for all screen sizes.
      Returns:
      Display type object
    • NONE

      public static DisplayType NONE(ScreenSize screenSize)
      Hides the component in case of the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size
      Returns:
      Display type object
    • INLINE

      public static DisplayType INLINE(ScreenSize screenSize)
      In-line display setting for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size
      Returns:
      Display type object
    • INLINE_BLOCK

      public static DisplayType INLINE_BLOCK(ScreenSize screenSize)
      In-line display of the component as a block component for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size
      Returns:
      Display type object
    • BLOCK

      public static DisplayType BLOCK(ScreenSize screenSize)
      Displays the component as a block component for the specified and bigger screen sizes. This is the browser’s default display setting.
      Parameters:
      screenSize - Screen size
      Returns:
      Display type object
    • TABLE

      public static DisplayType TABLE(ScreenSize screenSize)
      Displays the component as a table for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size
      Returns:
      Display type object
    • TABLE_CELL

      public static DisplayType TABLE_CELL(ScreenSize screenSize)
      Displays the component as a table cell for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size
      Returns:
      Display type object
    • TABLE_ROW

      public static DisplayType TABLE_ROW(ScreenSize screenSize)
      Displays the component as a table row for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size
      Returns:
      Display type object
    • FLEX

      public static DisplayType FLEX(ScreenSize screenSize)
      Flexible display of the component for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size
      Returns:
      Display type object
    • INLINE_FLEX

      public static DisplayType INLINE_FLEX(ScreenSize screenSize)
      Flexible in-line display of the component for the specified and bigger screen sizes.
      Parameters:
      screenSize - Screen size
      Returns:
      Display type object
    • removeAllDisplayType

      public static void removeAllDisplayType(Component<?> component)
      Removes all display settings from the specified component.
      Parameters:
      component - Component instance
    • getAllDisplayTypeStyleClasses

      public static List<String> getAllDisplayTypeStyleClasses(Component<?> component)
      Gets all display type classes from the specified component.
      Parameters:
      component - Component instance
      Returns:
      List of all display type style classes for the specified component If there is no available setting for the specified component, the method returns an empty list.
    • 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