public class CompletionInfo extends Object
Constructor and Description |
---|
CompletionInfo(String actualCompletion)
Construct a CompletionInfo with a tab completion candidate, and no additional label to
distinguish the candidate.
|
CompletionInfo(String actualCompletion,
String userVisibleText)
Cosntruct a CompletionInfo with a tab completion candidate as well as a descriptive label
to distinguish the candidate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getActualCompletion()
Provides the String completion when there is only one tab-completion match.
|
String |
getCompletionWithUserVisibleText()
Provides the String displayed to the user when tab-completion returns more than one possible result.
|
String |
getUserVisibleText()
Provides a human-friendly identifier text describing
getActualCompletion() . |
int |
hashCode() |
public CompletionInfo(String actualCompletion, String userVisibleText)
actualCompletion
- the text which may be tab completeduserVisibleText
- a label displayed beside the completion textpublic CompletionInfo(String actualCompletion)
actualCompletion
- the text which may be tab completedpublic String getActualCompletion()
public String getUserVisibleText()
getActualCompletion()
.public String getCompletionWithUserVisibleText()
getActualCompletion()
), as well as the descriptive
label (getUserVisibleText()
), if available.Copyright © 2017. All rights reserved.