<h2>org.das2.jythoncompletion.support.CompletionProvider</h2><p>The basic interface of the code completion querying SPI. Various implementations can
 be registered per a document mime-type.</p>
<hr>
<a name="COMPLETION_QUERY_TYPE"></a>
<h2>COMPLETION_QUERY_TYPE</h2>
<p>The <code>int</code> value representing the query for a code completion.</p>

<hr>
<a name="DOCUMENTATION_QUERY_TYPE"></a>
<h2>DOCUMENTATION_QUERY_TYPE</h2>
<p>The <code>int</code> value representing the query for a documentation.</p>

<hr>
<a name="TOOLTIP_QUERY_TYPE"></a>
<h2>TOOLTIP_QUERY_TYPE</h2>
<p>The <code>int</code> value representing the query for a tooltip hint.</p>

<hr>
<a name="COMPLETION_ALL_QUERY_TYPE"></a>
<h2>COMPLETION_ALL_QUERY_TYPE</h2>
<p>The <code>int</code> value representing the query for an all code completion.</p>

<hr>
<a name="createTask"></a>
<h2>createTask</h2>
createTask( int queryType, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/text/JTextComponent.html'>javax.swing.text.JTextComponent</a> component ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/jythoncompletion/support/CompletionTask.html'>org.das2.jythoncompletion.support.CompletionTask</a>

<p>Creates a task that performs a query of the given type on the given component.
 <br>
 This method is invoked in AWT thread only and the returned task
 may either be synchronous (if it's not complex)
 or it may be asynchonous
 (see {@link org.netbeans.spi.editor.completion.support.AsyncCompletionTask}).
 <br>
 The task usually inspects the component's document, the
 text up to the caret position and returns the appropriate result.</p>

<h3>Parameters</h3>
queryType - a type ot the query. It can be one of the {@link #COMPLETION_QUERY_TYPE},
  {@link #COMPLETION_ALL_QUERY_TYPE}, {@link #DOCUMENTATION_QUERY_TYPE},
  or {@link #TOOLTIP_QUERY_TYPE} (but not their combination).
<br>
component - a component on which the query is performed

<h3>Returns:</h3>
a task performing the query.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=createTask&unscoped_q=createTask">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/support/CompletionProvider.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/support/CompletionProvider.html#createTask">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/support/CompletionProvider.java">[view source]</a>
<br>
<br>
<hr>
<a name="getAutoQueryTypes"></a>
<h2>getAutoQueryTypes</h2>
getAutoQueryTypes( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/javax/swing/text/JTextComponent.html'>javax.swing.text.JTextComponent</a> component, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> typedText ) &rarr; int

<p>Called by the code completion infrastructure to check whether a text just typed
 into a text component triggers an automatic query invocation.
 <br>
 If the particular query type is returned the infrastructure
 will then call {@link #createTask(int, JTextComponent)}.</p>

<h3>Parameters</h3>
component - a component in which typing appeared
<br>
typedText - a typed text

<h3>Returns:</h3>
a combination of the {@link #COMPLETION_QUERY_TYPE}, {@link #COMPLETION_ALL_QUERY_TYPE},
         {@link #DOCUMENTATION_QUERY_TYPE}, and {@link #TOOLTIP_QUERY_TYPE}
         values, or zero if no query should be automatically invoked.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=getAutoQueryTypes&unscoped_q=getAutoQueryTypes">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/jythoncompletion/support/CompletionProvider.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/jythoncompletion/support/CompletionProvider.html#getAutoQueryTypes">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/jythoncompletion/support/CompletionProvider.java">[view source]</a>
<br>
<br>