Class Suggestion
java.lang.Object
io.jmix.ui.component.autocomplete.Suggestion
Class for single suggestion for an 
Single suggestion has three attributes:
AutoCompleteSupport field.
 Single suggestion has three attributes:
- Suggestion value itself. If user selects this suggestion this value will be inserted to text field.
- Display value that is presented inside the suggestion box.
- Cursor positions (start and end) for the replacement.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSuggestion(AutoCompleteSupport component, String displayText, String valueText, String valueSuffix, int startPosition, int endPosition) Create new suggestion.
- 
Method SummaryModifier and TypeMethodDescriptionintint
- 
Field Details- 
displayText
- 
valueText
- 
valueSuffix
- 
startPositionprotected int startPosition
- 
endPositionprotected int endPosition
 
- 
- 
Constructor Details- 
Suggestionpublic Suggestion(AutoCompleteSupport component, String displayText, String valueText, String valueSuffix, int startPosition, int endPosition) Create new suggestion.- Parameters:
- displayText- Text to display in the suggestion box
- valueText- Value to be inserted into text field if this suggestion is selected.
- valueSuffix- The part of the value that is located after the current cursor position. This is used by the client-side filtering method.
- startPosition- Start position of the replacement. Must be positive and below length of text in textfield. If negative number is given the current cursor position is used.
- endPosition- End position of the replacement. Must be positive and below length of text in textfield. If negative number is given the current cursor position is used.
 
 
- 
- 
Method Details- 
getValueSuffix
- 
getDisplayText
- 
getValueText
- 
getStartPositionpublic int getStartPosition()
- 
getEndPositionpublic int getEndPosition()
 
-