diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-10-16 11:13:35 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2012-10-16 09:42:18 +0000 |
commit | 39515829548b0ff2097e4562c0d75e8d02074e15 (patch) | |
tree | eccff6ce9764ec8ab334f196cad6e2a96bcca39b /server/src/com/vaadin/ui/UI.java | |
parent | c3a03b70126931ecab5db93fc12c99ac66677688 (diff) | |
download | vaadin-framework-39515829548b0ff2097e4562c0d75e8d02074e15.tar.gz vaadin-framework-39515829548b0ff2097e4562c0d75e8d02074e15.zip |
Delegate UI.replaceComponent() to content instead of throwing UOE (#9967)
* Added a test, also renamed tests/server/component/root to tests/server/component/ui
Change-Id: I80d30dd5acb3643cfb3cfc0b972f52ffa4512691
Diffstat (limited to 'server/src/com/vaadin/ui/UI.java')
-rw-r--r-- | server/src/com/vaadin/ui/UI.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java index 31a7446e96..2878d10fa1 100644 --- a/server/src/com/vaadin/ui/UI.java +++ b/server/src/com/vaadin/ui/UI.java @@ -556,9 +556,13 @@ public abstract class UI extends AbstractComponentContainer implements return this; } + /** + * This implementation replaces a component in the content container ( + * {@link #getContent()}) instead of in the actual UI. + */ @Override public void replaceComponent(Component oldComponent, Component newComponent) { - throw new UnsupportedOperationException(); + getContent().replaceComponent(oldComponent, newComponent); } /** |