instantSubstitution(int caretPos) Performs instant text substitution, provided that result contains only one
item and completion has been invoked at the end of the word.
refresh(boolean postRequest) Refresh the contents of the view if it's currently visible.
Parameters: postRequest - post the request instead of refreshing the viewimmediately.
public void
setPaneVisible(boolean visible) Set the visibility of the view.
Called to do either displaying or refreshing of the view.
This method can be called either directly or because of the timer has fired.
Parameters: evt - event describing the timer firing or nullif the method was called directly because of the synchronousshowing/refreshing the view.
public boolean instantSubstitution(int caretPos)(Code)
Performs instant text substitution, provided that result contains only one
item and completion has been invoked at the end of the word.
Parameters: caretPos - offset position of the caret
invalidateLastResult
final public synchronized void invalidateLastResult()(Code)
Reset the result of the last valid completion query. This
is done for example after the document was modified.
Return true when the pane exists and is visible.
This is the preferred method of testing the visibility of the pane
instead of getPane().isVisible() that forces
the creation of the pane.
Get the help and show it in the view. If the view is already visible
perform the refresh of the view.
Parameters: postRequest - post the request instead of displaying the viewimmediately. The ExtSettingsNames.COMPLETION_AUTO_POPUP_DELAYsetting stores the number of milliseconds before the view is displayed.If the user presses a key until the delay expires nothing is shown.This guarantees that the user which knows what to write will not beannoyed with the unnecessary help.
Refresh the contents of the view if it's currently visible.
Parameters: postRequest - post the request instead of refreshing the viewimmediately. The ExtSettingsNames.COMPLETION_REFRESH_DELAYsetting stores the number of milliseconds before the view is refreshed.
Set the visibility of the view. This method should
be used mainly for hiding the completion pane. If used
with visible set to true it calls the popup(false).
public synchronized boolean substituteCommonText()(Code)
Substitute the text with the longest common
part of all the entries appearing in the view.
This function is usually triggered
upon pressing the Tab key.
true if the substitution was performedfalse if not.
substituteSimpleText
public synchronized boolean substituteSimpleText()(Code)
substituteText
public synchronized boolean substituteText(boolean shift)(Code)
Substitute the document's text with the text
that is appopriate for the selection
in the view. This function is usually triggered
upon pressing the Enter key.
true if the substitution was performedfalse if not.