From 31c68947e255d6ba38038abe9aad1131c1f27950 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Wed, 7 Sep 2011 09:37:14 +0000 Subject: [PATCH] Added about screen to the benchmark application --- .../samples/client/GwtQueryBenchModule.java | 18 +++- .../samples/public/GwtQueryBench.html | 101 +++++++++++++++--- 2 files changed, 101 insertions(+), 18 deletions(-) diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java index 985c3c81..b6de78c2 100644 --- a/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java +++ b/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java @@ -227,7 +227,7 @@ public class GwtQueryBenchModule implements EntryPoint { selectedBenchmarks = readBenchmarkSelection(); selectPanel.hide(); - $("#startrace").text("Stop Race"); + $("#startrace").text("Stop the race"); $("#results").show(); initResultsTable(ds, selectedBenchmarks); @@ -313,7 +313,14 @@ public class GwtQueryBenchModule implements EntryPoint { } }; private Benchmark[] selectedBenchmarks; - private PopupPanel selectPanel = new PopupPanel(); + private PopupPanel selectPanel = new PopupPanel() {{ + addStyleName("spanel"); + }}; + private PopupPanel helpPanel = new PopupPanel() {{ + setAutoHideEnabled(true); + setWidget(new HTML($("#help").html())); + addStyleName("help"); + }}; private boolean shareIframes = true; private double trackWidth; @@ -323,8 +330,13 @@ public class GwtQueryBenchModule implements EntryPoint { public void iframeReadyCallback() { writeTestContent($(".ibench").contents().find("body").get(0)); gwtiframe = $(".ibench").eq(0).contents().get(0); - $("#startrace").text("Click to start the race"); + $("#startrace").text("Start the race"); $("#startrace").click(ask ? askBenchMarks: runBenchMarks); + $("#about").click(new Function(){ + public void f() { + helpPanel.center(); + } + }); } /** diff --git a/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html b/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html index 63fc0edc..ac758024 100644 --- a/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html +++ b/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html @@ -2,7 +2,7 @@ - GwtQuery BenchMarks + GwtQuery Benchmarks -

- GWTSpeed - GWT Query benchmarks +

+ GwtQuery benchmarks

-
Loading Javascript frameworks, please wait ...

+
About
+
Loading Javascript frameworks, please wait ...

+
@@ -98,8 +126,51 @@
-
Based on SlickSpeed test
+ -- 2.39.5