diff options
author | Julien Dramaix <julien.dramaix@gmail.com> | 2011-03-05 07:56:06 +0000 |
---|---|---|
committer | Julien Dramaix <julien.dramaix@gmail.com> | 2011-03-05 07:56:06 +0000 |
commit | 47daab2a59c8458c15b77bc13801c173433a484a (patch) | |
tree | 630350461ea2bd86eb0381683cd62a6395e21494 /samples | |
parent | a01efe08f9de2b60a99b6504d9c14cd5bb7dcc4b (diff) | |
download | gwtquery-47daab2a59c8458c15b77bc13801c173433a484a.tar.gz gwtquery-47daab2a59c8458c15b77bc13801c173433a484a.zip |
add disclosure panel
Diffstat (limited to 'samples')
-rw-r--r-- | samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java | 18 | ||||
-rw-r--r-- | samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html | 14 |
2 files changed, 23 insertions, 9 deletions
diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java index 212c36f9..61ac65fc 100644 --- a/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java +++ b/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java @@ -34,11 +34,11 @@ public class GwtQueryWidgetModule implements EntryPoint { public void onModuleLoad() {
$(".inputText").as(Widgets).textBox();
-
+
$(".btn").as(Widgets).button(new Function() {
-
+
public void f(Widget w) {
-
+
Button button = (Button) w;
button.addClickHandler(new ClickHandler() {
@@ -53,17 +53,17 @@ public class GwtQueryWidgetModule implements EntryPoint { });
}
-
+
});
$("#tabs").as(Widgets).tabPanel();
- DateBox b = $(".date").as(Widgets).datebox().widget();
- System.out.println(b);
-
- RichTextArea a = $(".editable").as(Widgets).richtext().widget(0);
- System.out.println(a);
+ $(".date").as(Widgets).datebox();
+
+ $(".editable").as(Widgets).richtext();
+
+ $("#disclosure").as(Widgets).disclosurePanel();
}
}
diff --git a/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html b/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html index 1b6c485c..29217aff 100644 --- a/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html +++ b/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html @@ -61,6 +61,20 @@ felis vestibulum consequat. Aliquam erat volutpat.</div> </div>
</div>
+<div id="disclosure">
+<h3>Show me</h3>
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut
+mollis dignissim mattis. In hac habitasse platea dictumst. Cras gravida
+pellentesque purus, ullamcorper euismod enim ornare ac. Suspendisse sed
+tortor diam. Cum sociis natoque penatibus et magnis dis parturient
+montes, nascetur ridiculus mus. Integer a cursus erat. Nam in molestie
+lacus. Nullam adipiscing fermentum magna vel sagittis. Pellentesque et
+nisi orci. Nunc volutpat ornare malesuada. Aliquam erat volutpat. Duis
+hendrerit adipiscing mauris, vitae tincidunt dui sodales eget. Nulla ac
+velit ac nunc dapibus volutpat eget vel eros. Maecenas tincidunt, turpis
+vel placerat imperdiet, metus elit mollis sapien, et egestas felis felis
+vitae metus.</div>
+
</body>
|