From e10def58c8f5df861326192b59e8a1d7dfe97585 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 11 Apr 2012 21:43:30 +0300 Subject: [PATCH] Removed getLayout/setLayout (#8169) --- src/com/vaadin/ui/Panel.java | 39 ------------------------------------ 1 file changed, 39 deletions(-) diff --git a/src/com/vaadin/ui/Panel.java b/src/com/vaadin/ui/Panel.java index c279870a89..e358462bbb 100644 --- a/src/com/vaadin/ui/Panel.java +++ b/src/com/vaadin/ui/Panel.java @@ -111,45 +111,6 @@ public class Panel extends AbstractComponentContainer implements Scrollable, super.setCaption(caption); } - /** - * Gets the current layout of the panel. - * - * @return the Current layout of the panel. - * @deprecated A Panel can now contain a ComponentContainer which is not - * necessarily a Layout. Use {@link #getContent()} instead. - */ - @Deprecated - public Layout getLayout() { - if (content instanceof Layout) { - return (Layout) content; - } else if (content == null) { - return null; - } - - throw new IllegalStateException( - "Panel does not contain a Layout. Use getContent() instead of getLayout()."); - } - - /** - * Sets the layout of the panel. - * - * If given layout is null, a VerticalLayout with margins set is used as a - * default. - * - * Components from old layout are not moved to new layout by default - * (changed in 5.2.2). Use function in Layout interface manually. - * - * @param newLayout - * the New layout of the panel. - * @deprecated A Panel can now contain a ComponentContainer which is not - * necessarily a Layout. Use - * {@link #setContent(ComponentContainer)} instead. - */ - @Deprecated - public void setLayout(Layout newLayout) { - setContent(newLayout); - } - /** * Returns the content of the Panel. * -- 2.39.5