aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2016-11-25 17:59:01 +0200
committerVaadin Code Review <review@vaadin.com>2016-11-28 07:58:06 +0000
commit051bac514c04c76c4291c106cd77dc9ea1255ac8 (patch)
tree7ed9bafe7ea61f96c3b03627b8e1414de6ce9412 /server
parent0090a4823226a6ded49ea373a3cd4a317090f3d5 (diff)
downloadvaadin-framework-051bac514c04c76c4291c106cd77dc9ea1255ac8.tar.gz
vaadin-framework-051bac514c04c76c4291c106cd77dc9ea1255ac8.zip
Add state classes for Abstract(Single)ComponentContainer
Change-Id: I6939fbc6f7aed0897f50b19f85fb62d0b8368cc7
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/ui/AbstractComponentContainer.java11
-rw-r--r--server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java14
2 files changed, 25 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/AbstractComponentContainer.java b/server/src/main/java/com/vaadin/ui/AbstractComponentContainer.java
index f3cfd72931..a7b1051699 100644
--- a/server/src/main/java/com/vaadin/ui/AbstractComponentContainer.java
+++ b/server/src/main/java/com/vaadin/ui/AbstractComponentContainer.java
@@ -23,6 +23,7 @@ import java.util.LinkedList;
import com.vaadin.server.ComponentSizeValidator;
import com.vaadin.shared.Registration;
+import com.vaadin.shared.ui.AbstractComponentContainerState;
/**
* Extension to {@link AbstractComponent} that defines the default
@@ -317,4 +318,14 @@ public abstract class AbstractComponentContainer extends AbstractComponent
public Iterator<Component> getComponentIterator() {
return iterator();
}
+
+ @Override
+ protected AbstractComponentContainerState getState() {
+ return (AbstractComponentContainerState) super.getState();
+ }
+
+ @Override
+ protected AbstractComponentContainerState getState(boolean markAsDirty) {
+ return (AbstractComponentContainerState) super.getState(markAsDirty);
+ }
}
diff --git a/server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java b/server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java
index fbb937e148..822ff0588c 100644
--- a/server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java
+++ b/server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java
@@ -25,6 +25,7 @@ import com.vaadin.server.ComponentSizeValidator;
import com.vaadin.server.VaadinService;
import com.vaadin.server.VaadinSession;
import com.vaadin.shared.Registration;
+import com.vaadin.shared.ui.AbstractSingleComponentContainerState;
import com.vaadin.ui.declarative.DesignContext;
import com.vaadin.ui.declarative.DesignException;
@@ -352,4 +353,17 @@ public abstract class AbstractSingleComponentContainer extends AbstractComponent
design.appendChild(childNode);
}
}
+
+ @Override
+ protected AbstractSingleComponentContainerState getState() {
+ return (AbstractSingleComponentContainerState) super.getState();
+ }
+
+ @Override
+ protected AbstractSingleComponentContainerState getState(
+ boolean markAsDirty) {
+ return (AbstractSingleComponentContainerState) super.getState(
+ markAsDirty);
+ }
+
} \ No newline at end of file