aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/Window.java
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2016-10-24 11:32:16 +0300
committerVaadin Code Review <review@vaadin.com>2016-10-26 05:59:27 +0000
commit9abe01a5881ae7fb43d2706ca9302aa68cc0221b (patch)
tree97b3fabfd917c5513b4adbce20b37af1a78dac87 /server/src/main/java/com/vaadin/ui/Window.java
parent5bc31e8267230fc4abfef34dcaa77ce5eae447b3 (diff)
downloadvaadin-framework-9abe01a5881ae7fb43d2706ca9302aa68cc0221b.tar.gz
vaadin-framework-9abe01a5881ae7fb43d2706ca9302aa68cc0221b.zip
Introduce "shouldWriteDefaultValues" property to DesignContext.
Change-Id: I979448e5af032333a6a2f7b99b11ab16c41d7b18
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/Window.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/Window.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Window.java b/server/src/main/java/com/vaadin/ui/Window.java
index 82acf0ee6f..df06e54457 100644
--- a/server/src/main/java/com/vaadin/ui/Window.java
+++ b/server/src/main/java/com/vaadin/ui/Window.java
@@ -1406,7 +1406,7 @@ public class Window extends Panel
}
DesignAttributeHandler.writeAttribute("position", design.attributes(),
- getPosition(), def.getPosition(), String.class);
+ getPosition(), def.getPosition(), String.class, context);
// Process keyboard shortcuts
if (closeShortcuts.size() == 1 && hasCloseShortcut(KeyCode.ESCAPE)) {
@@ -1425,7 +1425,8 @@ public class Window extends Panel
// Write everything except the last "," to the design
DesignAttributeHandler.writeAttribute("close-shortcut",
- design.attributes(), attrString.trim(), null, String.class);
+ design.attributes(), attrString.trim(), null, String.class,
+ context);
}
for (Component c : getAssistiveDescription()) {