|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The 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
Method Summary | |
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. |
Method Detail |
public java.lang.Object[] getData()
public java.lang.Object[] getMatchingData()
getData()
. As with getData()
, these
data items may be opaque.
public int getMatchingDataCount()
public java.lang.Object getDefault()
public boolean complete(java.lang.Object selectedObject)
selectedObject
- object from the data set to use
for completion
public void 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.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.