Interface AutoCompleteTextEditingSupport.FinalBuilder<T,E,R>
- All Known Implementing Classes:
AutoCompleteTextEditingSupport.Builder
- Enclosing class:
AutoCompleteTextEditingSupport
public static interface AutoCompleteTextEditingSupport.FinalBuilder<T,E,R>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()This is the finalization method.Set function that returns a value that indicates whether the cell can be editedcomparator(Comparator<E> comparator) Add a comparator that is used to sort combobox values.enableNullElement(String notSetLiteral) Add an element on top of other elements in the combobox to clear the table cell value.filter(BiPredicate<T, E> filter) Add a filter.Add a filter.strategy(ValidationStrategy<E, String> strategy) Set a strategy that firstly validates the entered value before placing it in the object, and secondly processes the value from the object before displaying it in the editor.
-
Method Details
-
enableNullElement
Add an element on top of other elements in the combobox to clear the table cell value.- Parameters:
notSetLiteral- the label of the new combobox element that clears the cell value (typical values are: "", etc.) - Returns:
- the builder object
-
filter
Add a filter. Only matching items will be displayed in the combobox.
Note that there may be at most one filter. If you call this method several times, only the last method call will be effective. -
filter
Add a filter. Only matching items will be displayed in the combobox.
Note that there may be at most one filter. If you call this method several times, only the last method call will be effective. -
comparator
Add a comparator that is used to sort combobox values.
Note that there may be at most one comparator. If you call this method several times, only the last method call will be effective. -
canEdit
Set function that returns a value that indicates whether the cell can be edited- Parameters:
canEdit-- Returns:
- builder object
-
strategy
Set a strategy that firstly validates the entered value before placing it in the object, and secondly processes the value from the object before displaying it in the editor. The default strategy checks the input value against the value extract from the elements using the nameExtractor.- Parameters:
strategy-- Returns:
- builder object
-
build
R build()This is the finalization method. Call this method to install the auto-complete combobox editing support on a table column.
-