repo1.maven.org$maven2@org.apache.wicket$wicket-extensions@1.3.4
repo1.maven.org$maven2@org.apache.wicket$wicket-extensions@1.3.4@org$apache$wicket$extensions$ajax$markup$html$autocomplete$AutoCompleteSettings.java
file
oh
o
[]
package org.apache.wicket.extensions.ajax.markup.html.autocomplete;
This class encapsulates various settings for
AbstractAutoCompleteBehavior. See the
documentation for the property accessors of this class for further information.
Default settings:
| setting | default value |
|---|
| preselect | false |
| maxHeightInPx | -1 |
| showListOnEmptyInput | false |
Indicates whether the first item in the list is automatically selected when the autocomplete
list is shown.
- Returns:
- true if the first item of the autocomplete list should be preselected, false
(default) otherwise
Sets whether the first item in the autocomplete list should be selected when the autocomplete
list is shown.
Gets the maximum height of the autocomplete list in pixels.
-1 indicates that
the autocomplete list should have no maximum height.
- Returns:
- the maximum height in pixels
Sets the maximum height in pixels of the autocomplete list.
The maximum height can also be specified via css (and by setting maxHeightInPx to -1):
div.wicket-aa-container { maxHeight: 100px; }
Note that this does not work in IE6.
Indicates whether the autocomplete list will be shown if the input is empty.
- Returns:
- true if the autocomlete list will be shown if the input string is empty, false
otherwise
Sets whether the list should be shown when the input is empty.