java.lang.Object
java.lang.Enum<LayoutType>
overit.geocallapp.utilities.ux.ui.container.cardview.LayoutType
All Implemented Interfaces:
Serializable, Comparable<LayoutType>, Constable

public enum LayoutType extends Enum<LayoutType>
Enum to define the available layout types for CardView. Defines two states: compact (default) and expanded (with expansion handle).
Since:
21.0
  • Enum Constant Details

    • COMPACT

      public static final LayoutType COMPACT
      Compact layout - standard card display (initial state)
    • EXPANDED

      public static final LayoutType EXPANDED
      Expanded layout - used when the card is expanded via handle
  • Method Details

    • values

      public static LayoutType[] 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 LayoutType 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
    • getLayoutName

      public String getLayoutName()
      Gets the layout name
      Returns:
      The layout name as string
    • fromString

      public static LayoutType fromString(String name)
      Converts a string to the corresponding LayoutType
      Parameters:
      name - The layout name
      Returns:
      The corresponding LayoutType, or COMPACT if not found
    • isExpanded

      public boolean isExpanded()
      Checks if this layout is of expanded type
      Returns:
      true if the layout is expanded
    • isCompact

      public boolean isCompact()
      Checks if this layout is of compact type
      Returns:
      true if the layout is compact
    • toString

      public String toString()
      Overrides:
      toString in class Enum<LayoutType>