| 
 | org.netbeans.modules.editor.completion/1 1.6.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CompletionProvider
The basic interface of the code completion querying SPI. Various implementations can be registered per a document mime-type.
| Field Summary | |
|---|---|
| static int | COMPLETION_QUERY_TYPEThe intvalue representing the query for a code completion. | 
| static int | DOCUMENTATION_QUERY_TYPEThe intvalue representing the query for a documentation. | 
| static int | TOOLTIP_QUERY_TYPEThe intvalue representing the query for a tooltip hint. | 
| Method Summary | |
|---|---|
|  CompletionTask | createTask(int queryType,
           JTextComponent component)Creates a task that performs a query of the given type on the given component. | 
|  int | getAutoQueryTypes(JTextComponent component,
                  String typedText)Called by the code completion infrastructure to check whether a text just typed into a text component triggers an automatic query invocation. | 
| Field Detail | 
|---|
static final int COMPLETION_QUERY_TYPE
int value representing the query for a code completion.
static final int DOCUMENTATION_QUERY_TYPE
int value representing the query for a documentation.
static final int TOOLTIP_QUERY_TYPE
int value representing the query for a tooltip hint.
| Method Detail | 
|---|
CompletionTask createTask(int queryType, JTextComponent component)
AsyncCompletionTask).
 
queryType - a type ot the query. It can be one of the COMPLETION_QUERY_TYPE,
  DOCUMENTATION_QUERY_TYPE, or TOOLTIP_QUERY_TYPE
  (but not their combination).component - a component on which the query is performed
int getAutoQueryTypes(JTextComponent component, String typedText)
createTask(int, JTextComponent).
component - a component in which typing appearedtypedText - a typed text
COMPLETION_QUERY_TYPE,
         DOCUMENTATION_QUERY_TYPE, and TOOLTIP_QUERY_TYPE
         values, or zero if no query should be automatically invoked.| 
 | org.netbeans.modules.editor.completion/1 1.6.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||