Author: jdonnerstag
Date: Tue May 25 17:01:50 2010
New Revision: 948107
URL: http://svn.apache.org/viewvc?rev=948107&view=rev
Log:
fixed WICKET-2866 Allow chaining with AutoCompleteSettings.setThrottleDelay(int)
Issue: WICKET-2866
Modified:
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java
Modified:
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java?rev=948107&r1=948106&r2=948107&view=diff
==============================================================================
---
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java
(original)
+++
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java
Tue May 25 17:01:50 2010
@@ -97,10 +97,12 @@ public final class AutoCompleteSettings
*
* @param throttleDelay
* The delay in milliseconds.
+ * @return this {...@link AutoCompleteSettings}
*/
- public void setThrottleDelay(int throttleDelay)
+ public AutoCompleteSettings setThrottleDelay(int throttleDelay)
{
this.throttleDelay = throttleDelay;
+ return this;
}
/**
@@ -236,7 +238,7 @@ public final class AutoCompleteSettings
/**
* Sets whether the list should be shown when the input field receives
focus.
*
- * @param showListOnEmptyInput
+ * @param showCompleteListOnFocusGain
* the flag
*/
public void setShowCompleteListOnFocusGain(final boolean
showCompleteListOnFocusGain)
@@ -258,7 +260,7 @@ public final class AutoCompleteSettings
/**
* Sets whether the list should be shown when the input field receives
focus.
*
- * @param showListOnEmptyInput
+ * @param showListOnFocusGain
* the flag
*/
public void setShowListOnFocusGain(final boolean showListOnFocusGain)