import com.google.gwt.dom.client.Style.Display;\r
import com.google.gwt.query.client.css.CssProperty;\r
import com.google.gwt.query.client.css.CssShorthandProperty3;\r
+import com.google.gwt.query.client.css.CssShorthandProperty4;\r
import com.google.gwt.query.client.css.CssShorthandProperty5;\r
import com.google.gwt.query.client.css.Length;\r
import com.google.gwt.query.client.css.TakeCssValue;\r
}\r
\r
/**\r
- * Set a multiple style property on every matched element using type-safe\r
+ * Set a shorthand style property taking 3 values on every matched element using type-safe\r
* enumerations. ex : $("#id").css(CSS.BORDER, BorderWidth.thick(),\r
* BorderStyle.DASHED, RGBColor.BLACK);\r
*/\r
}\r
return this;\r
}\r
+ \r
+ /**\r
+ * Set a shorthand style property taking 3 values on every matched element using type-safe\r
+ * enumerations. ex : $("#id").css(CSS.BORDER, BorderWidth.thick(),\r
+ * BorderStyle.DASHED, RGBColor.BLACK);\r
+ */\r
+ public <W, X, Y, Z, T extends CssShorthandProperty4<W, X, Y, Z>> GQuery css(\r
+ T cssProperty, W value0, X value1, Y value2, Z value3) {\r
+ for (Element e : elements()) {\r
+ cssProperty.set(e.getStyle(), value0, value1, value2, value3);\r
+ }\r
+ return this;\r
+ }\r
\r
/**\r
- * Set a multiple style property on every matched element using type-safe\r
+ * Set a shorthand style property taking 5 values on every matched element using type-safe\r
* enumerations. ex : $("#id").css(CSS.BACKGROUND, RGBColor.TRANSPARENT,\r
* BackgroundImage.url("back.jpg"), BackgroundRepeat.NO_REPEAT,\r
* BackgroundAttachment.SCROLL, BackgroundPosition.CENTER);\r
import com.google.gwt.dom.client.Style.Display;
import com.google.gwt.query.client.css.CssProperty;
import com.google.gwt.query.client.css.CssShorthandProperty3;
+import com.google.gwt.query.client.css.CssShorthandProperty4;
import com.google.gwt.query.client.css.CssShorthandProperty5;
import com.google.gwt.query.client.css.Length;
import com.google.gwt.query.client.css.TakeCssValue;
LazyGQuery<T> css(TakesLength cssProperty, Length value);
/**
- * Set a multiple style property on every matched element using type-safe
+ * Set a shorthand style property taking 3 values on every matched element using type-safe
* enumerations. ex : $("#id").css(CSS.BORDER, BorderWidth.thick(),
* BorderStyle.DASHED, RGBColor.BLACK);
*/
<X, Y, Z, T extends CssShorthandProperty3<X, Y, Z>> LazyGQuery<T> css( T cssProperty, X value1, Y value2, Z value3);
/**
- * Set a multiple style property on every matched element using type-safe
+ * Set a shorthand style property taking 3 values on every matched element using type-safe
+ * enumerations. ex : $("#id").css(CSS.BORDER, BorderWidth.thick(),
+ * BorderStyle.DASHED, RGBColor.BLACK);
+ */
+ <W, X, Y, Z, T extends CssShorthandProperty4<W, X, Y, Z>> LazyGQuery<T> css( T cssProperty, W value0, X value1, Y value2, Z value3);
+
+ /**
+ * Set a shorthand style property taking 5 values on every matched element using type-safe
* enumerations. ex : $("#id").css(CSS.BACKGROUND, RGBColor.TRANSPARENT,
* BackgroundImage.url("back.jpg"), BackgroundRepeat.NO_REPEAT,
* BackgroundAttachment.SCROLL, BackgroundPosition.CENTER);