You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by ad...@apache.org on 2014/11/04 22:57:34 UTC
git commit: Added JavaDoc for onXXX methods
Repository: wicket
Updated Branches:
refs/heads/master 82b05f64b -> b41368ef0
Added JavaDoc for onXXX methods
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/b41368ef
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/b41368ef
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/b41368ef
Branch: refs/heads/master
Commit: b41368ef0bac75bc3118d1942470b84cfd56a0d9
Parents: 82b05f6
Author: Andrea Del Bene <an...@gmail.com>
Authored: Tue Nov 4 22:31:21 2014 +0100
Committer: Andrea Del Bene <an...@gmail.com>
Committed: Tue Nov 4 22:31:21 2014 +0100
----------------------------------------------------------------------
.../ajax/attributes/AjaxCallListener.java | 63 ++++++++++++++++++--
1 file changed, 59 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/b41368ef/wicket-core/src/main/java/org/apache/wicket/ajax/attributes/AjaxCallListener.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/attributes/AjaxCallListener.java b/wicket-core/src/main/java/org/apache/wicket/ajax/attributes/AjaxCallListener.java
index 1832786..ed6b352 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/attributes/AjaxCallListener.java
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/attributes/AjaxCallListener.java
@@ -36,6 +36,14 @@ public class AjaxCallListener implements IAjaxCallListener, IComponentAwareHeade
private StringBuilder complete;
private StringBuilder precondition;
+ /**
+ * Sets the JavaScript code that will be returned by {@link #getBeforeHandler(Component)}.
+ * If this code was already set, the new one will be appended to the existing one.
+ *
+ * @param before
+ * the JavaScript code for the corresponding handler
+ * @return This
+ */
public AjaxCallListener onBefore(final CharSequence before)
{
if (Strings.isEmpty(before) == false)
@@ -49,6 +57,14 @@ public class AjaxCallListener implements IAjaxCallListener, IComponentAwareHeade
return this;
}
+ /**
+ * Sets the JavaScript code that will be returned by {@link #getBeforeSendHandler(Component)}.
+ * If this code was already set, the new one will be appended to the existing one.
+ *
+ * @param before
+ * the JavaScript code for the corresponding handler
+ * @return This
+ */
public AjaxCallListener onBeforeSend(final CharSequence beforeSend)
{
if (Strings.isEmpty(beforeSend) == false)
@@ -61,7 +77,15 @@ public class AjaxCallListener implements IAjaxCallListener, IComponentAwareHeade
}
return this;
}
-
+
+ /**
+ * Sets the JavaScript code that will be returned by {@link #getAfterHandler(Component)}.
+ * If this code was already set, the new one will be appended to the existing one.
+ *
+ * @param before
+ * the JavaScript code for the corresponding handler
+ * @return This
+ */
public AjaxCallListener onAfter(final CharSequence after)
{
if (Strings.isEmpty(after) == false)
@@ -74,7 +98,15 @@ public class AjaxCallListener implements IAjaxCallListener, IComponentAwareHeade
}
return this;
}
-
+
+ /**
+ * Sets the JavaScript code that will be returned by {@link #getSuccessHandler(Component)}.
+ * If this code was already set, the new one will be appended to the existing one.
+ *
+ * @param before
+ * the JavaScript code for the corresponding handler
+ * @return This
+ */
public AjaxCallListener onSuccess(final CharSequence success)
{
if (Strings.isEmpty(success) == false)
@@ -88,7 +120,14 @@ public class AjaxCallListener implements IAjaxCallListener, IComponentAwareHeade
return this;
}
-
+ /**
+ * Sets the JavaScript code that will be returned by {@link #getFailureHandler(Component)}.
+ * If this code was already set, the new one will be appended to the existing one.
+ *
+ * @param before
+ * the JavaScript code for the corresponding handler
+ * @return This
+ */
public AjaxCallListener onFailure(final CharSequence failure)
{
if (Strings.isEmpty(failure) == false)
@@ -102,6 +141,14 @@ public class AjaxCallListener implements IAjaxCallListener, IComponentAwareHeade
return this;
}
+ /**
+ * Sets the JavaScript code that will be returned by {@link #getCompleteHandler(Component)}.
+ * If this code was already set, the new one will be appended to the existing one.
+ *
+ * @param before
+ * the JavaScript code for the corresponding handler
+ * @return This
+ */
public AjaxCallListener onComplete(final CharSequence complete)
{
if (Strings.isEmpty(complete) == false)
@@ -114,7 +161,15 @@ public class AjaxCallListener implements IAjaxCallListener, IComponentAwareHeade
}
return this;
}
-
+
+ /**
+ * Sets the JavaScript code that will be returned by {@link #getPrecondition(Component)}.
+ * If this code was already set, the new one will be appended to the existing one.
+ *
+ * @param before
+ * the JavaScript code for the precondition
+ * @return This
+ */
public AjaxCallListener onPrecondition(final CharSequence precondition)
{
if (Strings.isEmpty(precondition) == false)