|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface CompletionQuery.Result
Result of the query or expression evaluation. Simply said it consists of the list of the data and title and an internal information about how to substitute the text.
Method Summary | |
---|---|
List |
getData()
Get the list with the items satisfying the query. |
String |
getTitle()
Get the title describing the result or null if there's no title. |
boolean |
substituteCommonText(int dataIndex)
Substitute the text that is common for all the data entries. |
boolean |
substituteText(int dataIndex,
boolean shift)
Substitute the text in the document if the user picks the item from the data with the given index either by pressing ENTER or doubleclicking the item by mouse. |
Method Detail |
---|
List getData()
String getTitle()
boolean substituteText(int dataIndex, boolean shift)
dataIndex
- current selected item index in the current data list.
It can be used for making the substitution.shift
- indicates request for some kind of different behaviour,
means that e.g. user hold shift while pressing ENTER.
boolean substituteCommonText(int dataIndex)
dataIndex
- current selected item index in the current data list.
Although normally it shouldn't be necessary for making
the substitution, the completion implementations
can use it for customized behavior.
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |