diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-11-14 13:21:46 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2012-11-14 13:21:46 +0000 |
commit | 5e0fe9c6ff1e7a17d471b25afbfa6466073a8d28 (patch) | |
tree | 53ae9bd4892cbe0fb090d602dc9066446c1fde03 /server | |
parent | 0e2a0f54aba0c0d5c1d5e496a50883a3ae0976f3 (diff) | |
parent | 386b7ed018f23794b4232163ec29b1d4e37b78e9 (diff) | |
download | vaadin-framework-5e0fe9c6ff1e7a17d471b25afbfa6466073a8d28.tar.gz vaadin-framework-5e0fe9c6ff1e7a17d471b25afbfa6466073a8d28.zip |
Merge "Updated Form to use hierarchy change event (#9923)"
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/ui/Form.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Form.java b/server/src/com/vaadin/ui/Form.java index 9668eaf914..94a9f9b73a 100644 --- a/server/src/com/vaadin/ui/Form.java +++ b/server/src/com/vaadin/ui/Form.java @@ -1378,4 +1378,18 @@ public class Form extends AbstractField<Object> implements Item.Editor, public boolean isComponentVisible(Component childComponent) { return true; }; + + @Override + public void setVisible(boolean visible) { + if (isVisible() == visible) { + return; + } + + super.setVisible(visible); + // If the visibility state is toggled it might affect all children + // aswell, e.g. make container visible should make children visible if + // they were only hidden because the container was hidden. + markAsDirtyRecursive(); + } + } |