Package com.google.gwt.aria.client
Class Id
- java.lang.Object
-
- com.google.gwt.aria.client.Id
-
- All Implemented Interfaces:
AriaAttributeType
public class Id extends java.lang.Object implements AriaAttributeType
Id reference attribute type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAriaValue()
static Id
of(Element element)
Creates an Id instance for theelement
by getting the element 'id' attribute.static Id
of(java.lang.String elementId)
Creates an Id instance from theelementId
.
-
-
-
Method Detail
-
of
public static Id of(Element element)
Creates an Id instance for theelement
by getting the element 'id' attribute.- Parameters:
element
- A DOM element which should have a non empty, unique 'id' attribute set.
-
of
public static Id of(java.lang.String elementId)
Creates an Id instance from theelementId
.- Parameters:
elementId
- A string identifier that should correspond to the 'id' attribute value of a DOM element.
-
getAriaValue
public java.lang.String getAriaValue()
- Specified by:
getAriaValue
in interfaceAriaAttributeType
-
-