summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-04-03 17:31:13 +0300
committerLeif Åstrand <leif@vaadin.com>2012-04-03 17:31:13 +0300
commitfa5f05b18b94a1b22f79a442ec3032489a4379f2 (patch)
treede7d2a83511650dc9d98743f5884ed47f86ef959 /src
parent50cc1c9b4c95c88278e8051137c1704e340e912e (diff)
downloadvaadin-framework-fa5f05b18b94a1b22f79a442ec3032489a4379f2.tar.gz
vaadin-framework-fa5f05b18b94a1b22f79a442ec3032489a4379f2.zip
Add helper method to dump the dependency status of a component
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/LayoutManager.java6
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/layout/LayoutDependencyTree.java7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/LayoutManager.java b/src/com/vaadin/terminal/gwt/client/LayoutManager.java
index 6e4d28822b..f7c5570072 100644
--- a/src/com/vaadin/terminal/gwt/client/LayoutManager.java
+++ b/src/com/vaadin/terminal/gwt/client/LayoutManager.java
@@ -264,6 +264,12 @@ public class LayoutManager {
+ totalDuration.elapsedMillis() + "ms");
}
+ private void logConnectorStatus(int connectorId) {
+ currentDependencyTree
+ .logDependencyStatus((ComponentConnector) ConnectorMap.get(
+ connection).getConnector(Integer.toString(connectorId)));
+ }
+
private int measureConnectors(LayoutDependencyTree layoutDependencyTree,
boolean measureAll) {
int measureCount = 0;
diff --git a/src/com/vaadin/terminal/gwt/client/ui/layout/LayoutDependencyTree.java b/src/com/vaadin/terminal/gwt/client/ui/layout/LayoutDependencyTree.java
index acfd9dcf0f..ad3e198cbd 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/layout/LayoutDependencyTree.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/layout/LayoutDependencyTree.java
@@ -11,6 +11,7 @@ import com.vaadin.terminal.gwt.client.ComponentConnector;
import com.vaadin.terminal.gwt.client.ComponentContainerConnector;
import com.vaadin.terminal.gwt.client.ComponentState;
import com.vaadin.terminal.gwt.client.Util;
+import com.vaadin.terminal.gwt.client.VConsole;
import com.vaadin.terminal.gwt.client.ui.ManagedLayout;
public class LayoutDependencyTree {
@@ -440,4 +441,10 @@ public class LayoutDependencyTree {
measureTargets.addAll(getMeasureQueue(VERTICAL));
return measureTargets;
}
+
+ public void logDependencyStatus(ComponentConnector connector) {
+ VConsole.log("====");
+ VConsole.log(getDependency(connector, HORIZONTAL).toString());
+ VConsole.log(getDependency(connector, VERTICAL).toString());
+ }
}