import static com.google.gwt.query.client.plugins.Effects.Effects;
import static com.google.gwt.query.client.plugins.Events.Events;
import static com.google.gwt.query.client.plugins.Widgets.Widgets;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.dom.client.NodeList;
import com.google.gwt.dom.client.OptionElement;
import com.google.gwt.dom.client.SelectElement;
-import com.google.gwt.dom.client.TextAreaElement;
import com.google.gwt.dom.client.Style.Display;
import com.google.gwt.dom.client.Style.HasCssName;
+import com.google.gwt.dom.client.TextAreaElement;
import com.google.gwt.query.client.css.CSS;
import com.google.gwt.query.client.css.CssProperty;
import com.google.gwt.query.client.css.TakeCssValue;
import com.google.gwt.user.client.EventListener;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Widget;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
import com.google.gwt.query.client.LazyBase;
public interface LazyGQuery<T> extends LazyBase<T>{
*/
LazyGQuery<T> css(String prop, String val);
- // <S, T extends TakeCssValue<S>> LazyGQuery<T> css(T cssProperty, S value);
-
/**
* Set CSS a single style property on every matched element using type-safe
* enumerations. This method allows you to set manually the value or set
*/
List<Widget> widgets();
+ /**
+ * Return the list of attached widgets instance of the provided class matching the query.
+ *
+ * This method is very useful for decoupled views, so as we can access widgets from other
+ * views without maintaining methods which export them.
+ *
+ */
+ <W extends Widget> List<W> widgets(Class<W> clazz);
+
/**
* Get the current computed, pixel, width of the first matched element.
* It does not include margin, padding nor border.