public class Suggestion
extends java.lang.Object
AutoCompleteSupport
field.
Constructor and Description |
---|
Suggestion(AutoCompleteSupport component,
java.lang.String displayText,
java.lang.String valueText,
java.lang.String valueSuffix,
int startPosition,
int endPosition)
Create new suggestion.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayText() |
int |
getEndPosition() |
int |
getStartPosition() |
java.lang.String |
getValueSuffix() |
java.lang.String |
getValueText() |
public Suggestion(AutoCompleteSupport component, java.lang.String displayText, java.lang.String valueText, java.lang.String valueSuffix, int startPosition, int endPosition)
displayText
- Text to display in the suggestion boxvalueText
- 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.