org.das2.jythoncompletion.support.AsyncCompletionTask
Asynchronous completion task allowing asynchronous query execution
through {@link AsyncCompletionQuery}.
This is a final class and all the logic must be defined
in an implementation of {@link AsyncCompletionQuery} that must
be passed to constructor of this task.
AsyncCompletionTask( org.das2.jythoncompletion.support.AsyncCompletionQuery query, javax.swing.text.JTextComponent component )
Construct asynchronous task for the given component.
AsyncCompletionTask( org.das2.jythoncompletion.support.AsyncCompletionQuery query )
Constructor for the case when there is no valid component
which can happen when creating task for documentation or tooltip computation.
cancel
cancel( ) → void
Called by completion infrastructure to cancel the running task.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
query
query( org.das2.jythoncompletion.support.CompletionResultSet resultSet ) → void
Called by completion infrastructure in AWT thread to populate
the given result set with data.
Parameters
resultSet - a CompletionResultSet
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
refresh
refresh( org.das2.jythoncompletion.support.CompletionResultSet resultSet ) → void
Called by completion infrastructure in AWT thread once there
is a change in the component (caret position changes or document
gets modified).
The results should be fired into the newly provided completion listener.
Parameters
resultSet - a CompletionResultSet
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
run
run( ) → void
This method will be run() from the RequestProcessor during
performing of the query.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
toString
toString( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]