public interface InsightData
InsightData interface is the data model that
 contains the Insight information generated by the
 InsightProvider implementation. This interface contains minimal methods to access the data information by intention, to allow implementations to devise their own data model (i.e., list vs. tree.)
Insight, 
InsightProvider, 
InsightView| Modifier and Type | Method and Description | 
|---|---|
boolean | 
complete(java.lang.Object selectedObject)
Perform an Insight completion in the user's document using
 this particular data item (i.e., the selected item in the
 InsightView). 
 | 
java.lang.Object[] | 
getData()
Fetches the list of data items contains in this InsightData
 instance. 
 | 
java.lang.Object | 
getDefault()
Fetches the data item which should be selected in the view
 by default. 
 | 
java.lang.Object[] | 
getMatchingData()
Fetches a subset of the list of data items in this InsightData
 which matches what the user has typed so far. 
 | 
int | 
getMatchingDataCount()
Fetches the count of data items in this InsightData which
 matches what the user has typed so far. 
 | 
void | 
partialComplete()
Performs a partial Insight completion in the user's document
 based on the text entered in the user's document so far and
 the information available in this InsightData instance. 
 | 
java.lang.Object[] getData()
java.lang.Object[] getMatchingData()
getData().  As with getData(), these
 data items may be opaque.int getMatchingDataCount()
java.lang.Object getDefault()
boolean complete(java.lang.Object selectedObject)
selectedObject - object from the data set to use
        for completionvoid partialComplete()
For example, suppose the user has typed "s.eq" in the document, and Insight information is currently displaying:
Hitting "Tab" will enter "ual" into the document so that the user's document now reads "s.equal". The Insight information should also be updated to reflect the new document contents.
Even if there is only one selection applicable to the partial match, this will not perform a "complete" where Insight is dismissed. It is up to the user to hit "Enter" to perform the actual completion.