|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.ui.completion.StringCompletionProvider
public final class StringCompletionProvider
A completion provider for a simple collection of Strings.
Field Summary | |
---|---|
javax.swing.DefaultListCellRenderer |
renderer
|
Constructor Summary | |
---|---|
StringCompletionProvider(java.util.Collection<java.lang.String> strings)
Create a provider with the collection of strings to offer to the user in the popup for this completion field. |
Method Summary | |
---|---|
void |
completeInsight(javax.swing.text.Document doc,
int pos,
java.lang.String insightObject)
Complete insight for the specified position in the specified document, using the specified insight object. |
javax.swing.ListCellRenderer |
getCellRenderer()
Get the cell renderer used for the completion list this provider handles. |
java.lang.String[] |
getInsightData(javax.swing.text.Document doc,
int pos)
Get insight data for the specified position in the specified document. |
boolean |
handlesInsight(javax.swing.text.Document doc,
int pos)
Does this provider handle insight for the specified document? This method is normally called when an insight trigger of some kind happens (e.g. |
boolean |
isAutoPopupChar(char c)
Should the specified character trigger an automatic popup completion list that might be handled by this insight provider? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final javax.swing.DefaultListCellRenderer renderer
Constructor Detail |
---|
public StringCompletionProvider(java.util.Collection<java.lang.String> strings)
strings
- Method Detail |
---|
public javax.swing.ListCellRenderer getCellRenderer()
CompletionProvider
getCellRenderer
in interface CompletionProvider<java.lang.String>
public boolean handlesInsight(javax.swing.text.Document doc, int pos)
CompletionProvider
handlesInsight
in interface CompletionProvider<java.lang.String>
doc
- the document of the component to provide insight forpos
- the current caret position within the document
public java.lang.String[] getInsightData(javax.swing.text.Document doc, int pos)
CompletionProvider
getInsightData
in interface CompletionProvider<java.lang.String>
doc
- the document to provide insight forpos
- the current caret position within the document
public void completeInsight(javax.swing.text.Document doc, int pos, java.lang.String insightObject)
CompletionProvider
completeInsight
in interface CompletionProvider<java.lang.String>
doc
- the document to completepos
- the position to complete atinsightObject
- the insight object to complete withpublic boolean isAutoPopupChar(char c)
CompletionProvider
isAutoPopupChar
in interface CompletionProvider<java.lang.String>
c
- the character before the caret position.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |