Enum GBadge.Location

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<GBadge.Location>
    Enclosing class:
    GBadge

    public static enum GBadge.Location
    extends java.lang.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 Summary

      Enum Constants 
      Enum ConstantDescription
      BOTTOM_LEADING
      Bottom-left for LTR, and top-right for RTL.
      BOTTOM_TRAILING
      Bottom-right for LTR, and top-left for RTL.
      TOP_LEADING
      Top-left for LTR, and top-right for RTL.
      TOP_TRAILING
      Top-right for LTR, and top-left for RTL (default).
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      java.lang.Stringdescription
      The description corresponding to the item, e.g.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static GBadge.LocationvalueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static GBadge.Location[]values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • description

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

      • values

        public static GBadge.Location[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GBadge.Location c : GBadge.Location.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GBadge.Location valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null