Enum Class IconSize

java.lang.Object
java.lang.Enum<IconSize>
org.hippoecm.frontend.service.IconSize
All Implemented Interfaces:
Serializable, Comparable<IconSize>, Constable

public enum IconSize extends Enum<IconSize>
Icon types (sizes) used.
  • Enum Constant Details

  • Method Details

    • values

      public static IconSize[] 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 IconSize 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
    • getIconSize

      public static IconSize getIconSize(String name)
      Finds the most appropriate icon size for a particular configuration value. The symbolic names (s, m, l and xl) are preferred.
      Parameters:
      name - a symbolic icon size name (case insensitive) or an integer size value.
      Returns:
      the most appropriate icon size: either the exact matching one, or the first icon size that is equal to or bigger than the given integer size.
    • getSize

      public int getSize()
    • toString

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