public interface SelectOrConfirm
Modifier and Type | Method and Description |
---|---|
Autocomplete |
confirm()
Confirms previously typed value.
|
Autocomplete |
select()
Selects the first suggestion.
|
Autocomplete |
select(ChoicePicker picker)
Selects the first suggestion according to the given rules in
picker |
Autocomplete |
select(int index)
Selects the suggestion from the list of the suggestions at index.
|
Autocomplete |
select(String match)
Selects the first suggestion, which matches the given text.
|
Autocomplete confirm()
Autocomplete select()
RuntimeException
- when no option foundAutocomplete select(int index)
index
- index of suggestionRuntimeException
- when no option foundAutocomplete select(String match)
match
- string to match the suggestionRuntimeException
- when no option foundAutocomplete select(ChoicePicker picker)
picker param.
In other words, it selects the first suggestion which satisfies the choice picking rules defined in picker
picker
- for defining the rules by which the suggestion will be selectedRuntimeException
- when no such option foundChoicePickerHelper.ByIndexChoicePicker
,
ChoicePickerHelper.ByVisibleTextChoicePicker
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.