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 {
* @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 {
/**
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);
}
}