diff options
author | Julien Dramaix <julien.dramaix@gmail.com> | 2011-03-14 21:11:40 +0000 |
---|---|---|
committer | Julien Dramaix <julien.dramaix@gmail.com> | 2011-03-14 21:11:40 +0000 |
commit | 42817d883130a78f18e9ef29ccf087ccbe1fa78a (patch) | |
tree | c647ab8352f4a9031a8c56ef76d49c31d91b9ece /samples | |
parent | 00105067179a32891b470e3c1df5b7f96bcc85b1 (diff) | |
download | gwtquery-42817d883130a78f18e9ef29ccf087ccbe1fa78a.tar.gz gwtquery-42817d883130a78f18e9ef29ccf087ccbe1fa78a.zip |
- add checkbox and radiobutton factories
- remove WidgetOptions interface
Diffstat (limited to 'samples')
-rw-r--r-- | samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java | 2 | ||||
-rw-r--r-- | samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java index 70c4aac1..83d0169d 100644 --- a/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java +++ b/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java @@ -82,6 +82,8 @@ public class GwtQueryWidgetModule implements EntryPoint { $("#suggestBox1").as(Widgets).suggestBox(new SuggestBoxOptions("div"));
$("#suggestBox2").as(Widgets).suggestBox(new SuggestBoxOptions("li"));
$(".stack").as(Widgets).stackPanel();
+ $(".checkBox").as(Widgets).checkBox();
+ $(".radio").as(Widgets).radioButton();
GWT.log("Found " + $(".btn").widgets().size() + " buttons widget");
diff --git a/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html b/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html index 1b15c341..0a6eb9d5 100644 --- a/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html +++ b/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html @@ -114,6 +114,18 @@ <li>suggestion y</li>
<li>suggestion z</li>
</ul>
+
+ <div class="outer">
+ <div class="checkBox">Checkbox</div>
+ <div class="checkBox">created</div>
+ <div class="checkBox">from div</div>
+ </div>
+
+ <div class="outer">
+ <div class="radio">RadioButton</div>
+ <div class="radio">created</div>
+ <div class="radio">from div</div>
+ </div>
</div>
|