From 8f5cdc0b82212bf1124fad6dcf649005f3926b4d Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Sun, 27 Feb 2011 12:58:36 +0000 Subject: [PATCH] update lazy interface with last gquery new methods --- .../google/gwt/query/client/LazyGQuery.java | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java index 7a3c2e9b..5ec1d831 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java @@ -17,6 +17,11 @@ package com.google.gwt.query.client; 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; @@ -31,9 +36,9 @@ import com.google.gwt.dom.client.Node; 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; @@ -45,10 +50,6 @@ import com.google.gwt.user.client.Event; 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 extends LazyBase{ @@ -325,8 +326,6 @@ public interface LazyGQuery extends LazyBase{ */ LazyGQuery css(String prop, String val); - // > LazyGQuery 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 @@ -1235,6 +1234,15 @@ public interface LazyGQuery extends LazyBase{ */ List 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. + * + */ + List widgets(Class clazz); + /** * Get the current computed, pixel, width of the first matched element. * It does not include margin, padding nor border. -- 2.39.5