diff options
author | Artur Signell <artur@vaadin.com> | 2012-04-11 11:08:12 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-04-12 09:58:09 +0300 |
commit | 496a0c003995f3f29c2bd1f3bbcc3fb77a9d859f (patch) | |
tree | 67debd8b5a1b9132c1b0754c97e3517fba352de6 /src/com/vaadin/ui/GridLayout.java | |
parent | 1cc4ad371d2517f9ad49bd0746c883568fa5ff62 (diff) | |
download | vaadin-framework-496a0c003995f3f29c2bd1f3bbcc3fb77a9d859f.tar.gz vaadin-framework-496a0c003995f3f29c2bd1f3bbcc3fb77a9d859f.zip |
Component no longer implements Paintable
Diffstat (limited to 'src/com/vaadin/ui/GridLayout.java')
-rw-r--r-- | src/com/vaadin/ui/GridLayout.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/com/vaadin/ui/GridLayout.java b/src/com/vaadin/ui/GridLayout.java index c076c8a273..bdc08607e4 100644 --- a/src/com/vaadin/ui/GridLayout.java +++ b/src/com/vaadin/ui/GridLayout.java @@ -15,8 +15,10 @@ import java.util.Map.Entry; import com.vaadin.event.LayoutEvents.LayoutClickEvent; import com.vaadin.event.LayoutEvents.LayoutClickListener; import com.vaadin.event.LayoutEvents.LayoutClickNotifier; +import com.vaadin.terminal.LegacyPaint; import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; +import com.vaadin.terminal.Vaadin6Component; import com.vaadin.terminal.gwt.client.Connector; import com.vaadin.terminal.gwt.client.MouseEventDetails; import com.vaadin.terminal.gwt.client.ui.GridLayoutConnector.GridLayoutServerRPC; @@ -51,7 +53,8 @@ import com.vaadin.terminal.gwt.client.ui.LayoutClickEventHandler; */ @SuppressWarnings("serial") public class GridLayout extends AbstractLayout implements - Layout.AlignmentHandler, Layout.SpacingHandler, LayoutClickNotifier { + Layout.AlignmentHandler, Layout.SpacingHandler, LayoutClickNotifier, + Vaadin6Component { private GridLayoutServerRPC rpc = new GridLayoutServerRPC() { @@ -428,6 +431,10 @@ public class GridLayout extends AbstractLayout implements return components.size(); } + public void changeVariables(Object source, Map<String, Object> variables) { + // TODO Remove once Vaadin6Component is no longer implemented + } + /** * Paints the contents of this component. * @@ -436,11 +443,7 @@ public class GridLayout extends AbstractLayout implements * @throws PaintException * if the paint operation failed. */ - @Override public void paintContent(PaintTarget target) throws PaintException { - - super.paintContent(target); - // TODO refactor attribute names in future release. target.addAttribute("structuralChange", structuralChange); structuralChange = false; @@ -541,7 +544,7 @@ public class GridLayout extends AbstractLayout implements if (rows > 1) { target.addAttribute("h", rows); } - area.getComponent().paint(target); + LegacyPaint.paint(area.getComponent(), target); alignmentsArray[index++] = String .valueOf(getComponentAlignment(area.getComponent()) |