From 5f3474f1e610f7bddb2dc847cc1a52bf6d4cec5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Sat, 9 Nov 2013 15:15:19 +0100 Subject: [PATCH] Adding missing method in widgets, and javadocs --- .../gwt/query/client/plugins/Widgets.java | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java index 7e7f3462..6367e7b7 100755 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Widgets.java @@ -110,10 +110,7 @@ public class Widgets extends QueuePlugin { } /** - * Create a {@link Button} widget for each selected element. The - * initializers will be called on each new {@link Button} created - * by passing them in parameter. - * + * Create a {@link Button} widget for each selected element. */ public Widgets button() { return widgets(new ButtonWidgetFactory(), null); @@ -129,10 +126,25 @@ public class Widgets extends QueuePlugin { return widgets(new ButtonWidgetFactory(), initializers); } + /** + * Create a {@link Panel} widget for each selected element. + */ public Widgets panel() { return widgets(new HtmlPanelWidgetFactory(), null); } + /** + * Create a {@link Label} widget for each selected element. + */ + public Widgets label() { + return widgets(new LabelWidgetFactory(), null); + } + + /** + * Create a {@link Label} widget for each selected element. The + * initializers will be called on each new {@link Label} created + * by passing them in parameter. + */ public Widgets label(WidgetInitializer