| |
|
| java.awt.Window javax.swing.JWindow org.gjt.sp.jedit.gui.CompletionPopup
All known Subclasses: org.gjt.sp.jedit.gui.CompleteWord,
CompletionPopup | public class CompletionPopup extends JWindow (Code) | | Popup window for word completion in text area.
This class provides basic UI of completion popup.
since: jEdit 4.3pre11 |
Inner Class :public interface Candidates | |
Constructor Summary | |
public | CompletionPopup(View view, Point location) Create a completion popup.
It is not shown until reset() method is called with valid
candidates. |
CompletionPopup | public CompletionPopup(View view, Point location)(Code) | | Create a completion popup.
It is not shown until reset() method is called with valid
candidates. All key events for the view are intercepted by
this popup untill end of completion.
|
dispose | public void dispose()(Code) | | Quit completion.
|
doSelectedCompletion | public boolean doSelectedCompletion()(Code) | | Do completion with current selection and quit.
|
getCandidates | public Candidates getCandidates()(Code) | | Current candidates of completion.
|
getSelectedIndex | public int getSelectedIndex()(Code) | | Returns index of current selection.
Returns -1 if nothing is selected.
|
keyPressed | protected void keyPressed(KeyEvent e)(Code) | | Handle key pressed events.
Override this method to make additional key handing.
|
keyTyped | protected void keyTyped(KeyEvent e)(Code) | | Handle key typed events.
Override this method to make additional key handing.
|
reset | public void reset(Candidates candidates, boolean active)(Code) | | Start completion.
Parameters: candidates - The candidates of this completion Parameters: active - Ser focus to the popup |
setSelectedIndex | public void setSelectedIndex(int index)(Code) | | Set selection.
|
|
|
|