Enum Class ContainerType

java.lang.Object
java.lang.Enum<ContainerType>
com.jbstrap.ui.bootstrap.ContainerType
All Implemented Interfaces:
StyleElement, Serializable, Comparable<ContainerType>, Constable

public enum ContainerType extends Enum<ContainerType> implements StyleElement
  • Enum Constant Details

    • DEFAULT

      public static final ContainerType DEFAULT

      Default container

      • On extra small device (<576 pixel) the container width is 100%
      • On small device (>= 576px) the container width is 540px
      • On medium device (>= 768px) the container width is 720px
      • On large device (>= 992px) the container width is 960px
      • On extra large device (>= 1200px) the container is 1140px
    • SMALL

      public static final ContainerType SMALL

      Small container

      • On extra small device (<576 pixel) the container width is 100%
      • On small device (>= 576px) the container width is 540px
      • On medium device (>= 768px) the container width is 720px
      • On large device (>= 992px) the container width is 960px
      • On extra large device (>= 1200px) the container is 1140px
    • MEDIUM

      public static final ContainerType MEDIUM

      Medium container

      • On extra small device (<576 pixel) the container width is 100%
      • On small device (>= 576px) the container width is 100%
      • On medium device (>= 768px) the container width is 720px
      • On large device (>= 992px) the container width is 960px
      • On extra large device (>= 1200px) the container is 1140px
    • LARGE

      public static final ContainerType LARGE

      Large container

      • On extra small device (<576 pixel) the container width is 100%
      • On small device (>= 576px) the container width is 100%
      • On medium device (>= 768px) the container width is 100%
      • On large device (>= 992px) the container width is 960px
      • On extra large device (>= 1200px) the container is 1140px
    • EXTRA_LARGE

      public static final ContainerType EXTRA_LARGE

      Extra large container

      • On extra small device (<576 pixel) the container width is 100%
      • On small device (>= 576px) the container width is 100%
      • On medium device (>= 768px) the container width is 100%
      • On large device (>= 992px) the container width is 100%
      • On extra large device (>= 1200px) the container is 1140px
    • EXTRA_EXTRA_LARGE

      public static final ContainerType EXTRA_EXTRA_LARGE

      Default container

      • On extra small device (<576 pixel) the container width is 100%
      • On small device (>= 576px) the container width is 100%
      • On medium device (>= 768px) the container width is 100%
      • On large device (>= 992px) the container width is 100%
      • On extra large device (>= 1200px) the container is 1330pixel
    • FLUID

      public static final ContainerType FLUID

      Fluid container - The container width always 100% width on any device

  • Method Details

    • values

      public static ContainerType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ContainerType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • 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