summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-04-11 20:55:38 +0300
committerArtur Signell <artur@vaadin.com>2012-04-12 09:58:31 +0300
commit235822262ba4f32683de1641005cf1c0b0fff4dc (patch)
tree4890cb599a0f7748ac0bd1fb3dedc4a6c45bce23 /src/com/vaadin
parente55ee60d44d4397ff605aef2b37dbec7aa99f742 (diff)
downloadvaadin-framework-235822262ba4f32683de1641005cf1c0b0fff4dc.tar.gz
vaadin-framework-235822262ba4f32683de1641005cf1c0b0fff4dc.zip
Javadoc updates
Diffstat (limited to 'src/com/vaadin')
-rw-r--r--src/com/vaadin/terminal/Vaadin6Component.java11
-rw-r--r--src/com/vaadin/terminal/VariableOwner.java3
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java4
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<Vaadin6Component> legacyComponents = new ArrayList<Vaadin6Component>();
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);
}
}