summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authormichaelvogt <michael@vaadin.com>2013-06-14 11:55:21 +0300
committermichaelvogt <michael@vaadin.com>2013-07-04 17:06:39 +0300
commit00c473abf05da9bc8c755e6fef54f119ece698aa (patch)
treeef1018ca4426c990880d288301e5ad161ca311d2 /shared
parentd2c2ebb61e64bec7aaec73aa4b75d1b8044cb021 (diff)
downloadvaadin-framework-00c473abf05da9bc8c755e6fef54f119ece698aa.tar.gz
vaadin-framework-00c473abf05da9bc8c755e6fef54f119ece698aa.zip
Accessibility for Window (#11821)
Change-Id: Ica5d13fb138e8ed1c1966858c9e1dd0c4aa13af5
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ui/window/WindowState.java13
1 files changed, 13 insertions, 0 deletions
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