Class AutoCompleter
- java.lang.Object
-
- org.omegat.gui.editor.autocompleter.AutoCompleter
-
- All Implemented Interfaces:
IAutoCompleter
public class AutoCompleter extends java.lang.Object implements IAutoCompleter
The controller part of the auto-completer
-
-
Field Summary
Fields Modifier and Type Field Description static int
PAGE_ROW_COUNT
-
Constructor Summary
Constructors Constructor Description AutoCompleter(EditorTextArea3 editor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addView(AbstractAutoCompleterView view)
void
doSelection()
AbstractAutoCompleterView
getCurrentView()
boolean
isVisible()
java.lang.String
keyText(int base, int modifier)
get the key textboolean
processKeys(java.awt.event.KeyEvent e)
Process the autocompletion keysvoid
resetKeys()
void
setVisible(boolean isVisible)
void
textDidChange()
void
updatePopup(boolean onlyIfVisible)
Show the popup list.
-
-
-
Field Detail
-
PAGE_ROW_COUNT
public static final int PAGE_ROW_COUNT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AutoCompleter
public AutoCompleter(EditorTextArea3 editor)
-
-
Method Detail
-
addView
public void addView(AbstractAutoCompleterView view)
- Specified by:
addView
in interfaceIAutoCompleter
-
processKeys
public boolean processKeys(java.awt.event.KeyEvent e)
Process the autocompletion keys- Parameters:
e
- the key event to process- Returns:
- true if a key has been processed, false if otherwise.
-
doSelection
public void doSelection()
-
updatePopup
public void updatePopup(boolean onlyIfVisible)
Show the popup list.
-
getCurrentView
public AbstractAutoCompleterView getCurrentView()
-
isVisible
public boolean isVisible()
-
setVisible
public void setVisible(boolean isVisible)
-
keyText
public java.lang.String keyText(int base, int modifier)
get the key text- Parameters:
base
-modifier
-- Returns:
-
textDidChange
public void textDidChange()
-
resetKeys
public final void resetKeys()
- Specified by:
resetKeys
in interfaceIAutoCompleter
-
-