diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-11-21 13:11:06 +0100 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-11-21 13:11:06 +0100 |
commit | 41cbc0e6a39c6a8f37730a5d3501d3cc0f7d7aad (patch) | |
tree | 8603f90923b9658ea52318046417e3e7e033bd5d | |
parent | c5eade6ab0bb10cfd1b31d96d5a70efc84994060 (diff) | |
download | gwtquery-41cbc0e6a39c6a8f37730a5d3501d3cc0f7d7aad.tar.gz gwtquery-41cbc0e6a39c6a8f37730a5d3501d3cc0f7d7aad.zip |
Updating Lazy interfaces
3 files changed, 16 insertions, 43 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 14cd6b44..472aed62 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 @@ -2218,37 +2218,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{ String toString(); /** - * The transition() method allows you to create animation effects on any numeric HTML Attribute, - * CSS property, or color using CSS3 transformations and transitions. - * - * It works similar to animate(), and support chainning and queueing. - * - * Example: - * $("#foo").transition("{ opacity: 0.1, scale: 2, x: 50, y: 50 }", 5000, EasingCurve.easeInBack); - * - * $("#bar") - * .transition("{ opacity: 0.1, scale: 2, x: 50, y: 50 }", 5000, EasingCurve.easeInBack) - * .transition("{x: +100, width: +40px}", 2000, EasingCurve.easeOut); - * - */ - LazyGQuery<T> transition(Object stringOrProperties, int duration, Easing easing, Function... funcs); - - /** - * The transition() method allows you to create animation effects on any numeric HTML Attribute, - * CSS property, or color using CSS3 transformations and transitions. - * - * It works similar to animate() but has an extra parameter for delaying the animation, so as - * we dont have to use GQuery queue system for delaying executions, nor callbacks for firing more - * animations - * - * Example animate an element within 2 seconds: - * $("#foo") - * .transition("{ opacity: 0.1, scale: 2, x: 50, y: 50 }", 5000, 2000, EasingCurve.easeInBack); - * - */ - LazyGQuery<T> transition(Object stringOrProperties, int duration, int delay, Easing easing, Function... funcs); - - /** * Produces a string representation of the matched elements. */ String toString(boolean pretty); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java index cdcc61d2..a07112df 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyEffects.java @@ -26,6 +26,8 @@ import com.google.gwt.query.client.plugins.effects.Fx; import com.google.gwt.query.client.plugins.effects.PropertiesAnimation; import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.Easing; import com.google.gwt.query.client.plugins.effects.PropertiesAnimation.EasingCurve; +import com.google.gwt.query.client.plugins.effects.TransitionsAnimation; +import com.google.gwt.query.client.plugins.effects.TransitionsAnimation.TransitionsClipAnimation; import com.google.gwt.query.client.LazyBase; public interface LazyEffects<T> extends LazyBase<T>{ @@ -415,14 +417,6 @@ public interface LazyEffects<T> extends LazyBase<T>{ LazyEffects<T> slideUp(int millisecs, Function... f); /** - * Toggle displaying each of the set of matched elements. - * - * @param showOrHide A Boolean indicating whether to show or hide the - * elements. - */ - LazyEffects<T> toggle(boolean showOrHide); - - /** * Toggle displaying each of the set of matched elements by animating the * width, height, and opacity of the matched elements simultaneously. When * these properties reach 0 after a hiding animation, the display style diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java index eb2baf68..5fe7de8b 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/LazyWidgets.java @@ -45,10 +45,7 @@ public interface LazyWidgets<T> extends LazyBase<T>{ <W extends Widget> LazyWidgets<T> widgets(WidgetFactory<W> factory, WidgetInitializer<W> initializers); /** - * Create a {@link Button} widget for each selected element. The - * <code>initializers</code> will be called on each new {@link Button} created - * by passing them in parameter. - * + * Create a {@link Button} widget for each selected element. */ LazyWidgets<T> button(); @@ -60,8 +57,21 @@ public interface LazyWidgets<T> extends LazyBase<T>{ */ LazyWidgets<T> button(WidgetInitializer<Button> initializers); + /** + * Create a {@link Panel} widget for each selected element. + */ LazyWidgets<T> panel(); + /** + * Create a {@link Label} widget for each selected element. + */ + LazyWidgets<T> label(); + + /** + * Create a {@link Label} widget for each selected element. The + * <code>initializers</code> will be called on each new {@link Label} created + * by passing them in parameter. + */ LazyWidgets<T> label(WidgetInitializer<Label> initializers); /** |