summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractComponent.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-20 17:14:14 +0300
committerArtur Signell <artur@vaadin.com>2012-09-20 17:14:28 +0300
commit9500a714336d6f08b47f7cba980fc82faf318ef3 (patch)
tree8ed3d39cab8d386b079283b261c3bdc5b3347fd8 /server/src/com/vaadin/ui/AbstractComponent.java
parent1ba5c8840334b343dd196d239303148d56fb2a72 (diff)
downloadvaadin-framework-9500a714336d6f08b47f7cba980fc82faf318ef3.tar.gz
vaadin-framework-9500a714336d6f08b47f7cba980fc82faf318ef3.zip
Moved visible out from state so isVisible does not call markAsDirty (#9695)
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r--server/src/com/vaadin/ui/AbstractComponent.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java
index 04cf914603..8ad0ecf956 100644
--- a/server/src/com/vaadin/ui/AbstractComponent.java
+++ b/server/src/com/vaadin/ui/AbstractComponent.java
@@ -105,6 +105,8 @@ public abstract class AbstractComponent extends AbstractClientConnector
*/
private ActionManager actionManager;
+ private boolean visible = true;
+
/* Constructor */
/**
@@ -386,7 +388,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*/
@Override
public boolean isVisible() {
- return getState().visible;
+ return visible;
}
/*
@@ -396,11 +398,11 @@ public abstract class AbstractComponent extends AbstractClientConnector
*/
@Override
public void setVisible(boolean visible) {
- if (getState().visible == visible) {
+ if (isVisible() == visible) {
return;
}
- getState().visible = visible;
+ this.visible = visible;
if (getParent() != null) {
// Must always repaint the parent (at least the hierarchy) when
// visibility of a child component changes.