From 0b419887ee438eb524c6873f63b1d961f8a0c612 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Tue, 5 Apr 2011 08:16:39 +0000 Subject: [PATCH] moved gwt widgets from gwtquery to gquery enhance plugin --- .../gwt/query/client/plugins/Widgets.java | 385 +----------------- .../plugins/widgets/ButtonWidgetFactory.java | 56 --- .../widgets/CheckBoxWidgetFactory.java | 52 --- .../plugins/widgets/DateBoxWidgetFactory.java | 71 ---- .../widgets/DecoratorPanelWidgetFactory.java | 38 -- .../widgets/DisclosurePanelWidgetFactory.java | 94 ----- .../plugins/widgets/ListBoxWidgetFactory.java | 122 ------ .../widgets/PasswordTextBoxWidgetFactory.java | 32 -- .../widgets/RadioButtonWidgetFactory.java | 103 ----- .../widgets/RichTextWidgetFactory.java | 53 --- .../widgets/StackPanelWidgetFactory.java | 112 ----- .../widgets/SuggestBoxWidgetFactory.java | 124 ------ .../widgets/TabPanelWidgetFactory.java | 107 ----- .../widgets/TextAreaWidgetFactory.java | 52 --- .../widgets/TextBoxBaseWidgetFactory.java | 63 --- .../plugins/widgets/TextBoxWidgetFactory.java | 31 -- .../gwt/query/client/GQueryWidgetsTest.java | 16 +- .../gwtquery/samples/GwtQueryWidgets.gwt.xml | 6 - .../samples/client/GwtQueryWidgetModule.java | 122 ------ .../samples/public/GwtQueryWidgets.html | 199 --------- samples/src/main/webapp/index.html | 19 +- 21 files changed, 28 insertions(+), 1829 deletions(-) delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ButtonWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/CheckBoxWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/DateBoxWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/DecoratorPanelWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/DisclosurePanelWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/ListBoxWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/PasswordTextBoxWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/RadioButtonWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/RichTextWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/StackPanelWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/SuggestBoxWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TabPanelWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextAreaWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxBaseWidgetFactory.java delete mode 100644 gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/widgets/TextBoxWidgetFactory.java delete mode 100644 samples/src/main/java/gwtquery/samples/GwtQueryWidgets.gwt.xml delete mode 100644 samples/src/main/java/gwtquery/samples/client/GwtQueryWidgetModule.java delete mode 100644 samples/src/main/java/gwtquery/samples/public/GwtQueryWidgets.html 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 4e452ff5..ebaaa733 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 @@ -15,47 +15,15 @@ */ package com.google.gwt.query.client.plugins; +import java.util.ArrayList; +import java.util.List; + import com.google.gwt.dom.client.Element; import com.google.gwt.query.client.GQuery; -import com.google.gwt.query.client.plugins.widgets.ButtonWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.CheckBoxWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.DateBoxWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.DecoratorPanelWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.DisclosurePanelWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.ListBoxWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.PasswordTextBoxWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.RadioButtonWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.StackPanelWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.SuggestBoxWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.TabPanelWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.TextAreaWidgetFactory; -import com.google.gwt.query.client.plugins.widgets.TextBoxWidgetFactory; import com.google.gwt.query.client.plugins.widgets.WidgetFactory; import com.google.gwt.query.client.plugins.widgets.WidgetInitializer; import com.google.gwt.query.client.plugins.widgets.WidgetsUtils; -import com.google.gwt.query.client.plugins.widgets.DisclosurePanelWidgetFactory.DisclosurePanelOptions; -import com.google.gwt.query.client.plugins.widgets.ListBoxWidgetFactory.ListBoxOptions; -import com.google.gwt.query.client.plugins.widgets.RadioButtonWidgetFactory.RadioButtonOption; -import com.google.gwt.query.client.plugins.widgets.StackPanelWidgetFactory.StackPanelOptions; -import com.google.gwt.query.client.plugins.widgets.SuggestBoxWidgetFactory.SuggestBoxOptions; -import com.google.gwt.query.client.plugins.widgets.TabPanelWidgetFactory.TabPanelOptions; -import com.google.gwt.user.client.ui.Button; -import com.google.gwt.user.client.ui.CheckBox; -import com.google.gwt.user.client.ui.DecoratorPanel; -import com.google.gwt.user.client.ui.DisclosurePanel; -import com.google.gwt.user.client.ui.ListBox; -import com.google.gwt.user.client.ui.PasswordTextBox; -import com.google.gwt.user.client.ui.RadioButton; -import com.google.gwt.user.client.ui.StackPanel; -import com.google.gwt.user.client.ui.SuggestBox; -import com.google.gwt.user.client.ui.TabPanel; -import com.google.gwt.user.client.ui.TextArea; -import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.Widget; -import com.google.gwt.user.datepicker.client.DateBox; - -import java.util.ArrayList; -import java.util.List; /** * Widgets plugin for Gwt Query. Be careful, this plugin is still experimental. @@ -83,351 +51,7 @@ public class Widgets extends QueuePlugin { super(gq); } - /** - * 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. - * - */ - public Widgets button() { - return widgets(new ButtonWidgetFactory(), null); - } - - /** - * 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. - * - */ - public Widgets button(WidgetInitializer