|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.editor.ext.Completion
public class Completion
General Completion display formatting and services
Field Summary | |
---|---|
protected ExtEditorUI |
extEditorUI
Editor UI supporting this completion |
boolean |
provokedByAutoPopup
|
Constructor Summary | |
---|---|
Completion(ExtEditorUI extEditorUI)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent evt)
Called to do either displaying or refreshing of the view. |
void |
cancelRequest()
Cancel last request for either displaying or refreshing the pane. |
void |
completionCancel()
|
protected CompletionQuery |
createQuery()
|
protected CompletionView |
createView()
|
ExtCompletionPane |
getExtPane()
|
JavaDocPane |
getJavaDocPane()
|
JDCPopupPanel |
getJDCPopupPanel()
Get panel holding all aids (completion and documentation panes). |
JDCPopupPanel |
getJDCPopupPanelIfExists()
Get panel holding all aids (completion and documentation panes). |
CompletionQuery.Result |
getLastResult()
Get the result of the last valid completion query or null if there's no valid result available. |
CompletionPane |
getPane()
|
CompletionQuery |
getQuery()
|
Object |
getSelectedValue()
|
CompletionView |
getView()
|
boolean |
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. |
void |
invalidateLastResult()
Reset the result of the last valid completion query. |
boolean |
isAutoPopupEnabled()
Return true if the completion should popup automatically |
boolean |
isPaneVisible()
Return true when the pane exists and is visible. |
protected void |
performResults()
Show result popup. |
void |
popup(boolean postRequest)
Get the help and show it in the view. |
void |
propertyChange(PropertyChangeEvent evt)
|
void |
refresh(boolean postRequest)
Refresh the contents of the view if it's currently visible. |
void |
setPaneVisible(boolean visible)
Set the visibility of the view. |
void |
settingsChange(SettingsChangeEvent evt)
|
boolean |
substituteCommonText()
Substitute the text with the longest common part of all the entries appearing in the view. |
boolean |
substituteSimpleText()
|
boolean |
substituteText(boolean shift)
Substitute the document's text with the text that is appopriate for the selection in the view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ExtEditorUI extEditorUI
public boolean provokedByAutoPopup
Constructor Detail |
---|
public Completion(ExtEditorUI extEditorUI)
Method Detail |
---|
public void settingsChange(SettingsChangeEvent evt)
settingsChange
in interface SettingsChangeListener
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public CompletionPane getPane()
public ExtCompletionPane getExtPane()
protected CompletionView createView()
public final CompletionView getView()
protected CompletionQuery createQuery()
public final CompletionQuery getQuery()
public JavaDocPane getJavaDocPane()
public final JDCPopupPanel getJDCPopupPanelIfExists()
null
public JDCPopupPanel getJDCPopupPanel()
null
public final CompletionQuery.Result getLastResult()
public final void invalidateLastResult()
public Object getSelectedValue()
public boolean isAutoPopupEnabled()
public boolean isPaneVisible()
public void setPaneVisible(boolean visible)
public void completionCancel()
public void refresh(boolean postRequest)
postRequest
- post the request instead of refreshing the view
immediately. The ExtSettingsNames.COMPLETION_REFRESH_DELAY
setting stores the number of milliseconds before the view is refreshed.public void popup(boolean postRequest)
postRequest
- post the request instead of displaying the view
immediately. The ExtSettingsNames.COMPLETION_AUTO_POPUP_DELAY
setting 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 be
annoyed with the unnecessary help.public void cancelRequest()
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
evt
- event describing the timer firing or null
if the method was called directly because of the synchronous
showing/refreshing the view.protected void performResults()
public boolean instantSubstitution(int caretPos)
caretPos
- offset position of the caretpublic boolean substituteText(boolean shift)
public boolean substituteSimpleText()
public boolean substituteCommonText()
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |