diff options
author | michaelvogt <michael@vaadin.com> | 2013-03-25 15:46:58 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-04-02 14:10:58 +0000 |
commit | 4c5c1e0cfeff1c7118ab3fffe4d45e0f1966d470 (patch) | |
tree | 70440f782721af726d2fa930d7b9f6ed8e84bffe /server/src | |
parent | d454bf66d960d23908f427f86b4979912c476ec1 (diff) | |
download | vaadin-framework-4c5c1e0cfeff1c7118ab3fffe4d45e0f1966d470.tar.gz vaadin-framework-4c5c1e0cfeff1c7118ab3fffe4d45e0f1966d470.zip |
WAI-ARIA field corrections (#11407)
Implementation of suggestions from usage test by an screen reader user
Change-Id: If02512f3d4ee60e3e115023af9d9e600dc11321a
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/com/vaadin/ui/PopupDateField.java | 20 |
1 files changed, 20 insertions, 0 deletions
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; + } } |