| org.drools.brms.client.common.AutoCompleteTextBoxAsync
AutoCompleteTextBoxAsync | public class AutoCompleteTextBoxAsync extends TextBox implements KeyboardListener(Code) | | This nifty utility provides auto completion. Drop in replacement for a text box.
I recall lifting it from somewhere on http://del.icio.us/michaelneale/GWT, plus some
small tweaks.
If this gives any back chat, I will shut it down and we can just use a regular text box.
|
Method Summary | |
protected void | complete() | protected void | downKey(Widget arg0, char arg1, int arg2) | protected void | enterKey(Widget arg0, char arg1, int arg2) | protected void | escapeKey(Widget arg0, char arg1, int arg2) | public CompletionItemsAsync | getCompletionItems() | protected void | hideChoicesIfNeeded(String text) | public void | onKeyDown(Widget arg0, char arg1, int arg2) Handle events that happen when keys are pressed. | public void | onKeyPress(Widget arg0, char arg1, int arg2) | public void | onKeyUp(Widget arg0, char arg1, int arg2) Handle events that happen when keys are released. | protected void | otherKey(Widget arg0, char arg1, int arg2) | public void | setCompletionItems(CompletionItemsAsync items) | protected void | tabKey(Widget arg0, char arg1, int arg2) | protected void | upKey(Widget arg0, char arg1, int arg2) | protected void | updateChoices(String text) | protected void | updateChoices(String[] matches, String text) |
choices | protected ListBox choices(Code) | | |
choicesPopup | protected PopupPanel choicesPopup(Code) | | |
popupAdded | protected boolean popupAdded(Code) | | |
visible | protected boolean visible(Code) | | |
complete | protected void complete()(Code) | | |
downKey | protected void downKey(Widget arg0, char arg1, int arg2)(Code) | | |
enterKey | protected void enterKey(Widget arg0, char arg1, int arg2)(Code) | | |
escapeKey | protected void escapeKey(Widget arg0, char arg1, int arg2)(Code) | | |
getCompletionItems | public CompletionItemsAsync getCompletionItems()(Code) | | Returns the used CompletionItems object
CompletionItems implementation |
hideChoicesIfNeeded | protected void hideChoicesIfNeeded(String text)(Code) | | |
onKeyDown | public void onKeyDown(Widget arg0, char arg1, int arg2)(Code) | | Handle events that happen when keys are pressed.
|
onKeyPress | public void onKeyPress(Widget arg0, char arg1, int arg2)(Code) | | Not used at all
|
onKeyUp | public void onKeyUp(Widget arg0, char arg1, int arg2)(Code) | | Handle events that happen when keys are released.
|
otherKey | protected void otherKey(Widget arg0, char arg1, int arg2)(Code) | | |
setCompletionItems | public void setCompletionItems(CompletionItemsAsync items)(Code) | | Sets an "algorithm" returning completion items
You can define your own way how the textbox retrieves
autocompletion items
by implementing the CompletionItems interface and setting the
according object
See Also: SimpleAutoCompletionItem Parameters: items - CompletionItem implementation |
tabKey | protected void tabKey(Widget arg0, char arg1, int arg2)(Code) | | |
upKey | protected void upKey(Widget arg0, char arg1, int arg2)(Code) | | |
updateChoices | protected void updateChoices(String text)(Code) | | |
|
|