From 4c5c1e0cfeff1c7118ab3fffe4d45e0f1966d470 Mon Sep 17 00:00:00 2001 From: michaelvogt Date: Mon, 25 Mar 2013 15:46:58 +0200 Subject: WAI-ARIA field corrections (#11407) Implementation of suggestions from usage test by an screen reader user Change-Id: If02512f3d4ee60e3e115023af9d9e600dc11321a --- server/src/com/vaadin/ui/PopupDateField.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'server/src') diff --git a/server/src/com/vaadin/ui/PopupDateField.java b/server/src/com/vaadin/ui/PopupDateField.java index ae33493c89..b113378e74 100644 --- a/server/src/com/vaadin/ui/PopupDateField.java +++ b/server/src/com/vaadin/ui/PopupDateField.java @@ -118,4 +118,24 @@ public class PopupDateField extends DateField { getState().textFieldEnabled = state; } + /** + * Set a description that explains the usage of the Widget for users of + * assistive devices. + * + * @param descriptionForAssistiveDevices + * String with the description + */ + public void setDescriptionForAssistiveDevices(String description) { + getState().descriptionForAssistiveDevices = description; + } + + /** + * Get the description that explains the usage of the Widget for users of + * assistive devices. + * + * @return String with the description + */ + public String getDescriptionForAssistiveDevices() { + return getState().descriptionForAssistiveDevices; + } } -- cgit v1.2.3