|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.editor.insight.TooltipInsightData
The TooltipInsightData
interface contains public API
routines for an InsightData model that is based on a list model,
and is used for displaying tooltip (hint) information only.
As a result, no-op implementations have been provided for methods
that only apply to a completion insight implementation.
Note that this is provided for convenience, and is not required
for use with TooltipInsightView
. Your implementation
may implement ListInsightData
directly instead.
InsightData
,
ListInsightData
Constructor Summary | |
TooltipInsightData()
|
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). |
abstract 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. |
abstract javax.swing.ListModel |
getListModel()
Fetch a ListModel instance which represents this data model so that it can be displayed in a JList. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TooltipInsightData()
Method Detail |
public abstract javax.swing.ListModel getListModel()
getListModel
in interface ListInsightData
public abstract java.lang.Object[] getData()
getData
in interface InsightData
public java.lang.Object[] getMatchingData()
getData()
. As with getData()
, these
data items may be opaque.
getMatchingData
in interface InsightData
public int getMatchingDataCount()
getMatchingDataCount
in interface InsightData
public java.lang.Object getDefault()
getDefault
in interface InsightData
public boolean complete(java.lang.Object selectedObject)
complete
in interface InsightData
selectedObject
- object from the data set to use
for completion
public void partialComplete()
partialComplete
in interface InsightData
|
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.