Enum Class TemplateWidgetIdMode

All Implemented Interfaces:
Serializable, Comparable<TemplateWidgetIdMode>, Constable

public enum TemplateWidgetIdMode extends Enum<TemplateWidgetIdMode>
Enumeration that indicates how a widget's ID may be set.
  • Enum Constant Details

    • None

      public static final TemplateWidgetIdMode None
      Do not set the widget ID.
    • SetObjectName

      public static final TemplateWidgetIdMode SetObjectName
      Use setObjectName() to add a 'data-object-name' attribute. This is a safe choice since it does not affect the ID.
    • SetId

      public static final TemplateWidgetIdMode SetId
      Use setId() to set the ID as the varName.

      Warning: You must be careful that there are no two widgets with the same ID in yor application.

  • Method Details

    • values

      public static TemplateWidgetIdMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TemplateWidgetIdMode 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.