From: Manolo Carrasco Date: Mon, 21 Apr 2014 21:37:28 +0000 (+0200) Subject: Adding missing methods X-Git-Tag: gwtquery-project-1.4.3~37^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=012e5bdfec224b30ef6821c1703af1483b1f7002;p=gwtquery.git Adding missing methods --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index 96695649..2570f411 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -2458,7 +2458,7 @@ public class GQuery implements Lazy { /** * Set the height style property of every matched element. It's useful for using 'percent' or 'em' - * units Example: $(".a").width("100%") + * units Example: $(".a").height("100%") */ public GQuery height(String height) { return css("height", height); @@ -4264,6 +4264,15 @@ public class GQuery implements Lazy { return as(Effects).slideDown(millisecs, f); } + /** + * Toggle the visibility of all matched elements by adjusting their height and firing an optional + * callback after completion. Only the height is adjusted for this animation, causing all matched + * elements to be hidden or shown in a "sliding" manner + */ + public Effects slideToggle(Function... f) { + return as(Effects).slideToggle(f); + } + /** * Toggle the visibility of all matched elements by adjusting their height and firing an optional * callback after completion. Only the height is adjusted for this animation, causing all matched @@ -4822,6 +4831,14 @@ public class GQuery implements Lazy { return this; } + /** + * Set the width style property of every matched element. It's useful for using 'percent' or 'em' + * units Example: $(".a").width("100%") + */ + public GQuery width(String width) { + return css("width", width); + } + /** * Wrap each matched element with the specified HTML content. This wrapping process is most useful * for injecting additional structure into a document, without ruining the original semantic 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 992598e5..af506174 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 @@ -1108,7 +1108,7 @@ public interface LazyGQuery extends LazyBase{ /** * Set the height style property of every matched element. It's useful for using 'percent' or 'em' - * units Example: $(".a").width("100%") + * units Example: $(".a").height("100%") */ LazyGQuery height(String height); @@ -1414,7 +1414,7 @@ public interface LazyGQuery extends LazyBase{ * selector that determines the content to be loaded. * */ - LazyGQuery load(String url, Properties data, Function onSuccess); + LazyGQuery load(String url, IsProperties data, Function onSuccess); /** * Reduce the set of matched elements to all elements before a given position. The position of the @@ -2167,6 +2167,13 @@ public interface LazyGQuery extends LazyBase{ */ Effects slideDown(int millisecs, Function... f); + /** + * Toggle the visibility of all matched elements by adjusting their height and firing an optional + * callback after completion. Only the height is adjusted for this animation, causing all matched + * elements to be hidden or shown in a "sliding" manner + */ + Effects slideToggle(Function... f); + /** * Toggle the visibility of all matched elements by adjusting their height and firing an optional * callback after completion. Only the height is adjusted for this animation, causing all matched @@ -2458,6 +2465,12 @@ public interface LazyGQuery extends LazyBase{ */ LazyGQuery width(int width); + /** + * Set the width style property of every matched element. It's useful for using 'percent' or 'em' + * units Example: $(".a").width("100%") + */ + LazyGQuery width(String width); + /** * Wrap each matched element with the specified HTML content. This wrapping process is most useful * for injecting additional structure into a document, without ruining the original semantic