diff options
author | Manolo Carrasco <manolo@apache.org> | 2011-01-23 08:13:04 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2011-01-23 08:13:04 +0000 |
commit | 9413eb66c9704623cbf3b4111ba8b4595ab68443 (patch) | |
tree | 61790868f13d7d6c21a3a8cfa88f744dbc354fe9 /samples | |
parent | 60343f28053bb4e1fdbfdafa3169ff8744b24041 (diff) | |
download | gwtquery-9413eb66c9704623cbf3b4111ba8b4595ab68443.tar.gz gwtquery-9413eb66c9704623cbf3b4111ba8b4595ab68443.zip |
Changing deprecated gwt-api usage
Diffstat (limited to 'samples')
-rw-r--r-- | samples/pom.xml | 4 | ||||
-rw-r--r-- | samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java | 6 | ||||
-rw-r--r-- | samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html | 11 |
3 files changed, 12 insertions, 9 deletions
diff --git a/samples/pom.xml b/samples/pom.xml index dfa8f2b4..41b01b8d 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,15 +46,17 @@ <gwtVersion>${gwtversion}</gwtVersion> <compileReport>true</compileReport> <modules> +<!-- <module>gwtquery.samples.GwtQueryDemo</module> <module>gwtquery.samples.GwtQueryEffects</module> <module>gwtquery.samples.GwtQueryEffectsMin</module> <module>gwtquery.samples.GwtQuerySample</module> - <module>gwtquery.samples.GwtQueryBench</module> <module>gwtquery.samples.GwtQueryWidgets</module> <module>gwtquery.samples.GwtQueryImageZoom</module> <module>gwtquery.samples.FadeEffectsSample</module> <module>gwtquery.samples.SlideEffectsSample</module> +--> + <module>gwtquery.samples.GwtQueryBench</module> </modules> </configuration> <executions> diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java index a62837bf..8275f740 100644 --- a/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java +++ b/samples/src/main/java/gwtquery/samples/client/GwtQueryBenchModule.java @@ -22,6 +22,8 @@ import java.util.ArrayList; import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.RepeatingCommand;
import com.google.gwt.dom.client.Element;
import com.google.gwt.query.client.DeferredGQuery;
import com.google.gwt.query.client.Function;
@@ -36,8 +38,6 @@ import com.google.gwt.query.client.impl.research.SelectorEngineJS; import com.google.gwt.query.client.impl.research.SelectorEngineSizzleGwt;
import com.google.gwt.query.client.impl.research.SelectorEngineXPath;
import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.DeferredCommand;
-import com.google.gwt.user.client.IncrementalCommand;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HTML;
@@ -229,7 +229,7 @@ public class GwtQueryBenchModule implements EntryPoint { initResultsTable(dg, selectedBenchmarks);
initTrack(selectedBenchmarks);
- DeferredCommand.addCommand(new IncrementalCommand() {
+ Scheduler.get().scheduleIncremental(new RepeatingCommand() {
int benchMarkNumber = 0;
int numCalls = 0;
int row = 0;
diff --git a/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html b/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html index 4b644a8d..63fc0edc 100644 --- a/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html +++ b/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html @@ -72,14 +72,15 @@ }
.base {
+ margin-top: 20px;
margin-left: auto;
margin-right: auto;
width: 170px;
}
- .base, .base a {
- font-size: 85%;
- color: green;
- }
+ .base, .base a {
+ font-size: 85%;
+ color: green;
+ }
</style>
</head>
<body>
@@ -97,7 +98,7 @@ </table>
</div>
- <div class='base'>Based on the <a href='http://mootools.net/slickspeed/'>SlickSpeed</a> test</div>
+ <div class='base'>Based on <a href='http://mootools.net/slickspeed/'>SlickSpeed</a> test</div>
<script language="javascript" src="gwtquery.samples.GwtQueryBench.nocache.js"></script>
</body>
|