aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2014-05-03 09:29:06 +0200
committerManolo Carrasco <manolo@apache.org>2014-05-03 09:29:06 +0200
commitafe06b8f7bd45c024fab1f0bf076d05bb7b5d7fd (patch)
treefa3e39c7d06c24d60c0283f813ce5210de37462e /gwtquery-core
parenta69d2be341ad79c5980357fc7475df3cb1cd11af (diff)
downloadgwtquery-afe06b8f7bd45c024fab1f0bf076d05bb7b5d7fd.tar.gz
gwtquery-afe06b8f7bd45c024fab1f0bf076d05bb7b5d7fd.zip
Deprecating methods with com.google.gwt.user.client.Element arguments
Diffstat (limited to 'gwtquery-core')
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java3
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java10
2 files changed, 8 insertions, 5 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java
index e90ad93e..b094ebf8 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java
@@ -323,6 +323,7 @@ public abstract class Function {
* @param e takes a com.google.gwt.user.client.Element.
*
*/
+ @Deprecated
public void cancel(com.google.gwt.user.client.Element e) {
setElement(e);
}
@@ -356,6 +357,7 @@ public abstract class Function {
* @param e takes a com.google.gwt.user.client.Element.
*
*/
+ @Deprecated
public Object f(com.google.gwt.user.client.Element e, int i) {
setElement(e);
setIndex(i);
@@ -458,6 +460,7 @@ public abstract class Function {
* @param elem takes a com.google.gwt.user.client.Element
*/
private boolean loop = false;
+ @Deprecated
public void f(com.google.gwt.user.client.Element e) {
setElement(e);
Widget w = e != null ? GQuery.getAssociatedWidget(e) : null;
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java
index 5f3cf531..eaf446e7 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java
@@ -13,6 +13,11 @@
*/
package com.google.gwt.query.client.plugins.events;
+import static com.google.gwt.query.client.GQuery.$;
+
+import java.util.ArrayList;
+import java.util.List;
+
import com.google.gwt.core.client.Duration;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.EventTarget;
@@ -28,11 +33,6 @@ import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.EventListener;
-import java.util.ArrayList;
-import java.util.List;
-
-import static com.google.gwt.query.client.GQuery.$;
-
/**
* This class implements an event queue instance for one Element. The queue instance is configured
* as the default event listener in GWT.