diff options
author | Manolo Carrasco <manolo@apache.org> | 2011-03-04 12:53:33 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2011-03-04 12:53:33 +0000 |
commit | c3400eed9341a2c6215740205844ce1f5cd5c724 (patch) | |
tree | 3d562b6a4530b9d251d35f3a5667490e7c41db4b /samples/src | |
parent | 02ed20bdc7e7801e81947b144f2e51dadc1fc072 (diff) | |
download | gwtquery-c3400eed9341a2c6215740205844ce1f5cd5c724.tar.gz gwtquery-c3400eed9341a2c6215740205844ce1f5cd5c724.zip |
Added RichTextArea and DateBox widgetfactories. These are example of widgets which need to call onAttach
Diffstat (limited to 'samples/src')
-rw-r--r-- | samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java | 8 | ||||
-rw-r--r-- | samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java index cff828dd..20d59ccb 100644 --- a/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java +++ b/samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java @@ -25,7 +25,9 @@ import com.google.gwt.query.client.Function; import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PopupPanel;
+import com.google.gwt.user.client.ui.RichTextArea;
import com.google.gwt.user.client.ui.Widget;
+import com.google.gwt.user.datepicker.client.DateBox;
public class GwtQueryWidgetModule implements EntryPoint {
@@ -55,9 +57,13 @@ 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);
-
}
}
diff --git a/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html b/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html index 8e95b165..1b6c485c 100644 --- a/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html +++ b/samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html @@ -13,6 +13,7 @@ a button 3!</span> <button class="btn">Make me a button 4!</button>
<div class="btn">Make me a button 5!</div>
<div class="btn">Make me a button 6!</div>
+<input type="text" class="date" value="dd/MM/yyyy"/>
</div>
<div class="inputText">I will be an Input</div>
@@ -47,7 +48,7 @@ egestas, mi sapien ullamcorper diam, sit amet molestie mauris odio at lacus.</div>
<h3>Third tab</h3>
-<div>Vestibulum turpis eros, tempor et hendrerit sit amet,
+<div class='editable'>Vestibulum turpis eros, tempor et hendrerit sit amet,
hendrerit ut urna. Integer aliquam, neque non sollicitudin pulvinar,
orci neque faucibus mauris, a molestie massa ligula vitae eros. Proin
egestas, purus in pharetra aliquam, dolor odio faucibus lorem, ac
|