Enum Class GBadge.Location

java.lang.Object
java.lang.Enum<GBadge.Location>
com.iizix.prop.GBadge.Location
All Implemented Interfaces:
Serializable, Comparable<GBadge.Location>, Constable
Enclosing class:
GBadge

public static enum GBadge.Location extends Enum<GBadge.Location>
The location of the badge relative the component. This location is right-left-reversed when the component is in RTL state.
  • Enum Constant Details

    • TOP_TRAILING

      public static final GBadge.Location TOP_TRAILING
      Top-right for LTR, and top-left for RTL (default).
    • TOP_LEADING

      public static final GBadge.Location TOP_LEADING
      Top-left for LTR, and top-right for RTL.
    • BOTTOM_TRAILING

      public static final GBadge.Location BOTTOM_TRAILING
      Bottom-right for LTR, and top-left for RTL.
    • BOTTOM_LEADING

      public static final GBadge.Location BOTTOM_LEADING
      Bottom-left for LTR, and top-right for RTL.
  • Field Details

    • description

      public final String description
      The description corresponding to the item, e.g. "Top trailing".
  • Method Details

    • values

      public static GBadge.Location[] 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 GBadge.Location 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