diff options
Diffstat (limited to 'client/src/com/vaadin/client/ui/HandlesAriaCaption.java')
-rw-r--r-- | client/src/com/vaadin/client/ui/HandlesAriaCaption.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/HandlesAriaCaption.java b/client/src/com/vaadin/client/ui/HandlesAriaCaption.java new file mode 100644 index 0000000000..4eef0c5c25 --- /dev/null +++ b/client/src/com/vaadin/client/ui/HandlesAriaCaption.java @@ -0,0 +1,20 @@ +package com.vaadin.client.ui; + +import com.google.gwt.user.client.Element; + +/** + * Some Widgets need to handle the caption handling for WAI-ARIA themselfs, as + * for example the required ids need to be set in a specific way. In such a + * case, the Widget needs to implement this interface. + */ +public interface HandlesAriaCaption { + + /** + * Called to bind the provided caption (label in HTML speak) element to the + * main input element of the Widget. + * + * @param captionElement + * Element of the caption + */ + void handleAriaCaption(Element captionElement); +} |