public static class TextFieldWithAutoCompletion.StringsCompletionProvider extends TextFieldWithAutoCompletionListProvider<java.lang.String> implements DumbAware
DefaultTextCompletionValueDescriptor.StringValueDescriptor
myVariants
Constructor and Description |
---|
StringsCompletionProvider(java.util.Collection<java.lang.String> variants,
javax.swing.Icon icon) |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.String item1,
java.lang.String item2) |
protected javax.swing.Icon |
getIcon(java.lang.String item) |
protected java.lang.String |
getLookupString(java.lang.String item) |
acceptChar, applyPrefixMatcher, createPrefixMatcher, fillCompletionVariants, getAdvertisement, getCompletionPrefix, getItems, getPrefix, getQuickDocHotKeyAdvertisementTail, setAdvertisement, setItems
createInsertHandler, createLookupBuilder, getTailText, getTypeText
public StringsCompletionProvider(java.util.Collection<java.lang.String> variants, javax.swing.Icon icon)
public int compare(java.lang.String item1, java.lang.String item2)
compare
in interface java.util.Comparator<java.lang.String>
compare
in class DefaultTextCompletionValueDescriptor<java.lang.String>
protected javax.swing.Icon getIcon(java.lang.String item)
getIcon
in class DefaultTextCompletionValueDescriptor<java.lang.String>
protected java.lang.String getLookupString(java.lang.String item)
getLookupString
in class DefaultTextCompletionValueDescriptor<java.lang.String>