Directory

← Back

SuggestionTextField

SuggestionTextField load the suggestions on user key in

Author

Rating

Suggestion Textfield allows to lazyly load the suggestions based on the key in by the user. and also this supports to mask the user input to a specified key in length and after that number of charaters, suggestion will load and shown accordingly.

Sample code

final SuggestionTextField myTextField = new SuggestionTextField(
				"My Text Field");
		myTextField.setImmediate(true);
         
               // Key in mask length
		myTextField.setKeyInMaskLength(1);
		myTextField.addListener(new KeyPressedListener() {

			@Override
			public void keyPressed(KeyPressEvent event) {
				// implement key pressed logic here
			}

		});

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

version v0.2.0 - fixed the issues in user key press listener

Released
2010-10-23
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.4+
Browser
Internet Explorer
Internet Explorer
Firefox
Opera
Google Chrome
Online