Method Summary |
|
public boolean | addAllItems(Collection<? extends CompletionItem> items) Add the collection of the completion items to this result set.
This method can be called multiple times until
all the items have been added to ths result set.
After the adding is completed @link #finish()} must be called to confirm
that the result set will no longer be modified.
Parameters: items - collection of items to be added. |
public boolean | addItem(CompletionItem item) Add the completion item to this result set.
This method can be called multiple times until
all the items have been added to ths result set.
After the adding is completed @link #finish()} must be called to confirm
that the result set will no longer be modified.
Parameters: item - non-null completion item. |
public void | estimateItems(int estimatedItemCount, int estimatedItemWidth) Indicate that adding of the items to this result set
will likely need a long time so the resulting number of items
and their visual size should be estimated so that
the completion infrastructure can estimate the size
of the popup window and display the items added subsequently
without changing its bound extensively. |
public void | finish() Mark that this result set is finished and there will be no more
modifications done to it. |
public int | getSortType() Get the sort type currently used by the code completion. |
public boolean | isFinished() Check whether this result set is finished. |
public void | setAnchorOffset(int anchorOffset) Set the document offset to which the returned completion items
or documentation or tooltip should be anchored. |
public void | setDocumentation(CompletionDocumentation documentation) Set the documentation to this result set. |
public void | setHasAdditionalItems(boolean value) Indicate that additional items could be added to this result set. |
public void | setHasAdditionalItemsText(String text) Set the text to be displayed in a completion popup whenever a
CompletionProvider indicates that additional items could be added to this result set by passing
true to
CompletionResultSet.setHasAdditionalItems(boolean) .
Parameters: text - the text that will be directly prepend to the "Press 'Ctrl-Space' Again for All Items"message in the completion popup. |
public void | setTitle(String title) Set title that will be assigned to the completion popup window. |
public void | setToolTip(JToolTip toolTip) Set the tooltip to this result set. |
public void | setWaitText(String waitText) Set the explicit value displayed in a label when the completion results
do not get computed during a certain timeout (e.g. |