|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.aria.AriaHelper
public class AriaHelper
Helper class that helps to implement the WAI-ARIA functionality.
| Field Summary | |
|---|---|
static java.lang.String |
ASSISTIVE_DEVICE_ONLY_STYLE
|
| Constructor Summary | |
|---|---|
AriaHelper()
|
|
| Method Summary | |
|---|---|
static void |
bindCaption(Widget widget,
Element captionElement)
Binds a caption (label in HTML speak) to the form element as required by WAI-ARIA specification. |
static java.lang.String |
ensureHasId(Element element)
Makes sure that the provided element has an id attribute. |
static void |
handleInputInvalid(Element element,
boolean invalid)
Handles the required actions depending of the input element contains unaccepted input. |
static void |
handleInputInvalid(Widget widget,
boolean invalid)
Handles the required actions depending of the input Widget contains unaccepted input. |
static void |
handleInputRequired(Element element,
boolean required)
Handles the required actions depending of the input element being required or not. |
static void |
handleInputRequired(Widget widget,
boolean required)
Handles the required actions depending of the input Widget being required or not. |
static void |
setVisibleForAssistiveDevicesOnly(Element element,
boolean assistiveOnly)
Allows to move an element out of the visible area of the browser window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ASSISTIVE_DEVICE_ONLY_STYLE
| Constructor Detail |
|---|
public AriaHelper()
| Method Detail |
|---|
public static void bindCaption(Widget widget,
Element captionElement)
widget - Widget, that should be bound to the captioncaptionElements - Element with of caption to bind
public static void handleInputRequired(Widget widget,
boolean required)
widget - Widget, typically an input Widget like TextFieldrequired - boolean, true when the element is required
public static void handleInputRequired(Element element,
boolean required)
element - Element, typically from an input Widget like TextFieldrequired - boolean, true when the element is required
public static void handleInputInvalid(Widget widget,
boolean invalid)
widget - Widget, typically an input Widget like TextFieldinvalid - boolean, true when the Widget input has an error
public static void handleInputInvalid(Element element,
boolean invalid)
element - Element, typically an input Widget like TextFieldinvalid - boolean, true when the element input has an errorpublic static java.lang.String ensureHasId(Element element)
element - Element to check
public static void setVisibleForAssistiveDevicesOnly(Element element,
boolean assistiveOnly)
element - Element to move out of sightboolean - assistiveOnly true when element should only be visible for
assistive devices, false to make the element visible for all
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||