Repository: wicket
Updated Branches:
  refs/heads/wicket-6.x bb5a7e842 -> a8b56cf69


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/a8b56cf6
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/a8b56cf6
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/a8b56cf6

Branch: refs/heads/wicket-6.x
Commit: a8b56cf697389730d5ba3c0177fcc1df3c4092f7
Parents: bb5a7e8
Author: Andrea Del Bene <[email protected]>
Authored: Tue Nov 4 22:31:21 2014 +0100
Committer: Andrea Del Bene <[email protected]>
Committed: Tue Nov 4 22:58:29 2014 +0100

----------------------------------------------------------------------
 .../ajax/attributes/AjaxCallListener.java       | 63 ++++++++++++++++++--
 1 file changed, 59 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/a8b56cf6/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)

Reply via email to