| |
|
| java.lang.Object org.netbeans.spi.editor.completion.support.AsyncCompletionTask
Method Summary | |
public void | cancel() Called by completion infrastructure to cancel the running task. | synchronized boolean | isCancelled() | public void | query(CompletionResultSet resultSet) Called by completion infrastructure in AWT thread to populate
the given result set with data. | public void | refresh(CompletionResultSet resultSet) Called by completion infrastructure in AWT thread once there
is a change in the component (caret position changes or document
gets modified). | void | refreshImpl() | public void | run() This method will be run() from the RequestProcessor during
performing of the query. | public String | toString() |
AsyncCompletionTask | public AsyncCompletionTask(AsyncCompletionQuery query, JTextComponent component)(Code) | | Construct asynchronous task for the given component.
Parameters: query - non-null query implementation. Parameters: component - text component to operate with. The completion infrastructurewill cancel the task if the component or its associated document would change. It may be null to indicate that no component was provided. |
AsyncCompletionTask | public AsyncCompletionTask(AsyncCompletionQuery query)(Code) | | Constructor for the case when there is no valid component
which can happen when creating task for documentation or tooltip computation.
Parameters: query - non-null query implementation. |
cancel | public void cancel()(Code) | | Called by completion infrastructure to cancel the running task.
|
isCancelled | synchronized boolean isCancelled()(Code) | | |
query | public void query(CompletionResultSet resultSet)(Code) | | Called by completion infrastructure in AWT thread to populate
the given result set with data.
|
refresh | public void refresh(CompletionResultSet resultSet)(Code) | | 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.
|
refreshImpl | void refreshImpl()(Code) | | |
run | public void run()(Code) | | This method will be run() from the RequestProcessor during
performing of the query.
|
|
|
|