summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Panel.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/Panel.java')
-rw-r--r--server/src/com/vaadin/ui/Panel.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/src/com/vaadin/ui/Panel.java b/server/src/com/vaadin/ui/Panel.java
index ba68238707..00810b83db 100644
--- a/server/src/com/vaadin/ui/Panel.java
+++ b/server/src/com/vaadin/ui/Panel.java
@@ -176,7 +176,7 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
.addListener((ComponentContainer.ComponentDetachListener) this);
content = newContent;
- requestRepaint();
+ markAsDirty();
}
/**
@@ -318,7 +318,6 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
"Scroll offset must be at least 0");
}
getState().setScrollLeft(scrollLeft);
- requestRepaint();
}
/*
@@ -333,7 +332,6 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
"Scroll offset must be at least 0");
}
getState().setScrollTop(scrollTop);
- requestRepaint();
}
/* Documented in superclass */
@@ -465,7 +463,6 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
@Override
public void setTabIndex(int tabIndex) {
getState().setTabIndex(tabIndex);
- requestRepaint();
}
/**
@@ -489,7 +486,7 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
}
@Override
- public PanelState getState() {
+ protected PanelState getState() {
return (PanelState) super.getState();
}