From 235822262ba4f32683de1641005cf1c0b0fff4dc Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 11 Apr 2012 20:55:38 +0300 Subject: [PATCH] Javadoc updates --- src/com/vaadin/terminal/Vaadin6Component.java | 11 +++++++++++ src/com/vaadin/terminal/VariableOwner.java | 3 +++ .../gwt/server/AbstractCommunicationManager.java | 4 ++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/com/vaadin/terminal/Vaadin6Component.java b/src/com/vaadin/terminal/Vaadin6Component.java index 5b81336254..6f123bed67 100644 --- a/src/com/vaadin/terminal/Vaadin6Component.java +++ b/src/com/vaadin/terminal/Vaadin6Component.java @@ -4,6 +4,17 @@ import java.util.EventListener; import com.vaadin.ui.Component; +/** + * Interface provided to ease porting of Vaadin 6 components to Vaadin 7. By + * implementing this interface your Component will be able to use + * {@link #paintContent(PaintTarget)} and + * {@link #changeVariables(Object, java.util.Map)} just like in Vaadin 6. + * + * @author Vaadin Ltd + * @version @VERSION@ + * @since 7.0.0 + * + */ public interface Vaadin6Component extends VariableOwner, Component, EventListener { diff --git a/src/com/vaadin/terminal/VariableOwner.java b/src/com/vaadin/terminal/VariableOwner.java index 49e2179ece..c52e04c008 100644 --- a/src/com/vaadin/terminal/VariableOwner.java +++ b/src/com/vaadin/terminal/VariableOwner.java @@ -20,7 +20,10 @@ import java.util.Map; * @version * @VERSION@ * @since 3.0 + * @deprecated in 7.0. Only provided to ease porting of Vaadin 6 components. Do + * not implement this directly, implement {@link Vaadin6Component}. */ +@Deprecated public interface VariableOwner extends Serializable { /** diff --git a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java index 76822f27d2..d67ad36838 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java @@ -1100,9 +1100,9 @@ public abstract class AbstractCommunicationManager implements Serializable { throws PaintException { List legacyComponents = new ArrayList(); for (Connector connector : dirtyVisibleConnectors) { + // All Components that want to use paintContent must implement + // Vaadin6Component if (connector instanceof Vaadin6Component) { - // All legacy Components must be Paintables as Component extends - // Paintable in Vaadin 6 legacyComponents.add((Vaadin6Component) connector); } } -- 2.39.5