| |
|
| org.wings.STextField org.wingx.XSuggest
XSuggest | public class XSuggest extends STextField implements XSuggestDataSource(Code) | | Enhanced STextField that supports the user input by displaying suggestions.
author: Christian Schyma |
Constructor Summary | |
public | XSuggest() Creates a text field that can display suggestions. | public | XSuggest(String text) Creates a text field that can display suggestions. |
XSuggest | public XSuggest()(Code) | | Creates a text field that can display suggestions.
|
XSuggest | public XSuggest(String text)(Code) | | Creates a text field that can display suggestions.
Parameters: text - initial content of the text field |
generateSuggestions | public List<Map.Entry<String, String>> generateSuggestions(String lookupText)(Code) | | Obtaines the list of suggestions from the data source, if there is one.
See Also: {org.wingx.XSuggestDataSource.generateSugestions()} Parameters: lookupText - suggestions list with map entries or null, if there is no data source |
processLowLevelEvent | public void processLowLevelEvent(String action, String[] values)(Code) | | |
setDataSource | public void setDataSource(XSuggestDataSource source)(Code) | | set a new data source from which suggestions are generated
Parameters: source - |
setInputDelay | public void setInputDelay(int delay)(Code) | | Fast typists can produce a lot of requests in a short time; this delay
limits the requests to a certain time.
Parameters: delay - in ms |
setSuggestBoxWidth | public void setSuggestBoxWidth(SDimension dim)(Code) | | Configures the width of the suggest box. There are three possibilites:
- SDimension.AUTO automatically set the size in accordance to the content (default)
- SDimension.INHERIT inherits width from the suggest input box
- integer value
Parameters: dim - width of suggest box, height is ignored |
setTimeout | public void setTimeout(int timeout)(Code) | | Set Ajax request timeout.
Parameters: timeout - in ms |
|
|
|