You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jd...@apache.org on 2010/05/25 19:01:05 UTC
svn commit: r948105 -
/wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java
Author: jdonnerstag
Date: Tue May 25 17:01:00 2010
New Revision: 948105
URL: http://svn.apache.org/viewvc?rev=948105&view=rev
Log:
fixed WICKET-2866 Allow chaining with AutoCompleteSettings.setThrottleDelay(int)
Issue: WICKET-2866
Modified:
wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java
Modified: wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java?rev=948105&r1=948104&r2=948105&view=diff
==============================================================================
--- wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java (original)
+++ wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteSettings.java Tue May 25 17:01:00 2010
@@ -101,10 +101,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;
}
/**
@@ -267,11 +269,12 @@ public final class AutoCompleteSettings
/**
* Sets whether the list should be shown when the input field receives focus.
*
- * @param showListOnEmptyInput
+ * @param showCompleteListOnFocusGain
* the flag
* @return this {@link AutoCompleteSettings}.
*/
- public AutoCompleteSettings setShowCompleteListOnFocusGain(final boolean showCompleteListOnFocusGain)
+ public AutoCompleteSettings setShowCompleteListOnFocusGain(
+ final boolean showCompleteListOnFocusGain)
{
this.showCompleteListOnFocusGain = showCompleteListOnFocusGain;
return this;
@@ -291,7 +294,7 @@ public final class AutoCompleteSettings
/**
* Sets whether the list should be shown when the input field receives focus.
*
- * @param showListOnEmptyInput
+ * @param showListOnFocusGain
* the flag
* @return this {@link AutoCompleteSettings}.
*/
@@ -302,8 +305,10 @@ public final class AutoCompleteSettings
}
/**
- * Sets whether the popup positioning will take into account browser window visible area or not. (so always show popup bottom-right or not)<br>
- * THIS WILL PRODUCE UNWANTED BEHAVIOR WITH IE versions < 8 (probably because of unreliable clientWidth/clientHeight browser element properties).
+ * Sets whether the popup positioning will take into account browser window visible area or not.
+ * (so always show popup bottom-right or not)<br>
+ * THIS WILL PRODUCE UNWANTED BEHAVIOR WITH IE versions < 8 (probably because of unreliable
+ * clientWidth/clientHeight browser element properties).
*
* @param useSmartPositioning
* the flag