aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/AbstractComponent.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-03-13 20:39:00 +0200
committerArtur Signell <artur@vaadin.com>2012-03-14 16:00:53 +0200
commit4a3f767d1cd330b4dc83531f349e2d6408b202da (patch)
tree396c85400d52211a800893203919db3695dd705c /src/com/vaadin/ui/AbstractComponent.java
parentf38942e05bbb46c2d4db0cd964bf83f5bc171100 (diff)
downloadvaadin-framework-4a3f767d1cd330b4dc83531f349e2d6408b202da.tar.gz
vaadin-framework-4a3f767d1cd330b4dc83531f349e2d6408b202da.zip
Made TabSheet work again and removed TabSheet tab caching for now
Diffstat (limited to 'src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r--src/com/vaadin/ui/AbstractComponent.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/com/vaadin/ui/AbstractComponent.java b/src/com/vaadin/ui/AbstractComponent.java
index 5791ff21cd..b9e8f18368 100644
--- a/src/com/vaadin/ui/AbstractComponent.java
+++ b/src/com/vaadin/ui/AbstractComponent.java
@@ -409,8 +409,12 @@ public abstract class AbstractComponent implements Component, MethodEventSource
* @see com.vaadin.ui.Component#isVisible()
*/
public boolean isVisible() {
- return getState().isVisible()
- && (getParent() == null || getParent().isVisible());
+ if (getParent() == null) {
+ return getState().isVisible();
+ } else {
+ return getState().isVisible() && getParent().isVisible()
+ && ((HasComponents) getParent()).isComponentVisible(this);
+ }
}
/*
@@ -1699,4 +1703,9 @@ public abstract class AbstractComponent implements Component, MethodEventSource
return Collections.unmodifiableList(result);
}
}
+
+ public String getConnectorId() {
+ throw new RuntimeException(
+ "TODO: Move connector id handling to AbstractComponent");
+ }
}