]> source.dussan.org Git - vaadin-framework.git/commitdiff
DebugWindow sections now use previously empty areas to describe the functionality...
authorMarc Englund <marc@vaadin.com>
Thu, 13 Jun 2013 13:25:45 +0000 (16:25 +0300)
committerVaadin Code Review <review@vaadin.com>
Fri, 14 Jun 2013 07:10:52 +0000 (07:10 +0000)
Change-Id: I7cef423b8c4f991d40ad013022cc4f36879cd6dc

client/src/com/vaadin/client/debug/internal/HierarchySection.java
client/src/com/vaadin/client/debug/internal/NetworkSection.java

index e4f3e2dcb18f3b41131f6298338883641e4a61eb..0078832b87358015580333d177855e98cae94e6e 100644 (file)
@@ -126,6 +126,14 @@ public class HierarchySection implements Section {
         });
 
         content.setStylePrimaryName(VDebugWindow.STYLENAME + "-hierarchy");
+
+        HTML info = new HTML(showHierarchy.getHTML() + " "
+                + showHierarchy.getTitle() + "<br/>" + find.getHTML() + " "
+                + find.getTitle() + "<br/>" + analyze.getHTML() + " "
+                + analyze.getTitle() + "<br/>" + generateWS.getHTML() + " "
+                + generateWS.getTitle() + "<br/>");
+        info.setStyleName(VDebugWindow.STYLENAME + "-info");
+        content.add(info);
     }
 
     private void showHierarchy() {
index e94791ce1fc70a6e7af650d031e8ad0d30832fc1..a1cb8138efc9b8eab637dd9508e7df653a1514b0 100644 (file)
@@ -16,7 +16,7 @@
 package com.vaadin.client.debug.internal;
 
 import com.google.gwt.user.client.ui.FlowPanel;
-import com.google.gwt.user.client.ui.HorizontalPanel;
+import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.client.ApplicationConnection;
 import com.vaadin.client.VUIDLBrowser;
@@ -37,9 +37,13 @@ public class NetworkSection implements Section {
     private final DebugButton tabButton = new DebugButton(Icon.NETWORK,
             "Communication");
 
-    private final HorizontalPanel controls = new HorizontalPanel();
+    private final HTML controls = new HTML(tabButton.getTitle());
     private final FlowPanel content = new FlowPanel();
 
+    public NetworkSection() {
+        content.setStyleName(VDebugWindow.STYLENAME + "-network");
+    }
+
     @Override
     public DebugButton getTabButton() {
         return tabButton;
@@ -76,19 +80,16 @@ public class NetworkSection implements Section {
     public void uidl(ApplicationConnection ac, ValueMap uidl) {
         int sinceStart = VDebugWindow.getMillisSinceStart();
         int sinceReset = VDebugWindow.getMillisSinceReset();
+
         VUIDLBrowser vuidlBrowser = new VUIDLBrowser(uidl, ac);
         vuidlBrowser.addStyleName(VDebugWindow.STYLENAME + "-row");
-        // TODO style this
-        /*-
-        vuidlBrowser.setText("<span class=\"" + VDebugWindow.STYLENAME
-                + "-time\">" + sinceReset + "ms</span><span class=\""
-                + VDebugWindow.STYLENAME + "-message\">response</span>");
-        -*/
         vuidlBrowser.setText("Response @ " + sinceReset + "ms");
         vuidlBrowser.setTitle(VDebugWindow.getTimingTooltip(sinceStart,
                 sinceReset));
         vuidlBrowser.close();
+
         content.add(vuidlBrowser);
+
         while (content.getWidgetCount() > maxSize) {
             content.remove(0);
         }