Enum Class Container.Size

java.lang.Object
java.lang.Enum<Container.Size>
com.oorian.html.layout.Container.Size
All Implemented Interfaces:
Serializable, Comparable<Container.Size>, Constable
Enclosing class:
Container

public static enum Container.Size extends Enum<Container.Size>
Predefined container size presets based on common responsive breakpoints.
  • Enum Constant Details

    • SM

      public static final Container.Size SM
      Small container - 640px max-width.
    • MD

      public static final Container.Size MD
      Medium container - 768px max-width.
    • LG

      public static final Container.Size LG
      Large container - 1024px max-width (default).
    • XL

      public static final Container.Size XL
      Extra large container - 1280px max-width.
    • XXL

      public static final Container.Size XXL
      2x Extra large container - 1536px max-width.
    • FLUID

      public static final Container.Size FLUID
      Fluid container - no max-width constraint.
  • Method Details

    • values

      public static Container.Size[] 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 Container.Size 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
    • getValue

      public String getValue()
      Returns the CSS max-width value for this size.
      Returns:
      the CSS value string