Class PrimitiveValueAttribute<T>

java.lang.Object
com.google.gwt.aria.client.Attribute<T>
com.google.gwt.aria.client.PrimitiveValueAttribute<T>

class PrimitiveValueAttribute<T> extends Attribute<T>
Primitive type attribute. The primitive types are: boolean, string, int, number.
  • Constructor Details

    • PrimitiveValueAttribute

      public PrimitiveValueAttribute(String name)
    • PrimitiveValueAttribute

      public PrimitiveValueAttribute(String name, String defaultValue)
  • Method Details

    • getSingleValue

      protected String getSingleValue(T value)
      Description copied from class: Attribute
      Gets the string representation of value to be set as an attribute value to an HTML element.
      Specified by:
      getSingleValue in class Attribute<T>
      Parameters:
      value - The item to be stringified
      Returns:
      the stringified representation of value