From 00c473abf05da9bc8c755e6fef54f119ece698aa Mon Sep 17 00:00:00 2001 From: michaelvogt Date: Fri, 14 Jun 2013 11:55:21 +0300 Subject: Accessibility for Window (#11821) Change-Id: Ica5d13fb138e8ed1c1966858c9e1dd0c4aa13af5 --- shared/src/com/vaadin/shared/ui/window/WindowState.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'shared') diff --git a/shared/src/com/vaadin/shared/ui/window/WindowState.java b/shared/src/com/vaadin/shared/ui/window/WindowState.java index 5a2d2b81b0..fa430f6c9c 100644 --- a/shared/src/com/vaadin/shared/ui/window/WindowState.java +++ b/shared/src/com/vaadin/shared/ui/window/WindowState.java @@ -15,6 +15,7 @@ */ package com.vaadin.shared.ui.window; +import com.vaadin.shared.Connector; import com.vaadin.shared.ui.panel.PanelState; public class WindowState extends PanelState { @@ -22,6 +23,13 @@ public class WindowState extends PanelState { primaryStyleName = "v-window"; } + /** + * Available WAI-ARIA roles for a window. + */ + public enum WindowRole { + ALERTDIALOG, DIALOG + }; + public boolean modal = false; public boolean resizable = true; public boolean resizeLazy = false; @@ -30,4 +38,9 @@ public class WindowState extends PanelState { public int positionX = -1; public int positionY = -1; public WindowMode windowMode = WindowMode.NORMAL; + + public String assistivePrefix = ""; + public String assistivePostfix = ""; + public Connector[] contentDescription; + public WindowRole role = WindowRole.DIALOG; } \ No newline at end of file -- cgit v1.2.3