Class AutoCompleter
java.lang.Object
org.omegat.gui.editor.autocompleter.AutoCompleter
- All Implemented Interfaces:
IAutoCompleter
The controller part of the auto-completer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidbooleanCheck if the autocompleter is visible.keyText(int base, int modifier) get the key textbooleanProcess the autocompletion keysfinal voidReset the autocompletion keys.voidsetVisible(boolean isVisible) Set the visibility of the autocompleter.voidNotify the autocompleter that the text has changed.voidupdatePopup(boolean onlyIfVisible) Show the popup list.
-
Field Details
-
PAGE_ROW_COUNT
public static final int PAGE_ROW_COUNT- See Also:
-
-
Constructor Details
-
AutoCompleter
-
-
Method Details
-
addView
Deprecated.Description copied from interface:IAutoCompleterAdd a view to the autocompleter.- Specified by:
addViewin interfaceIAutoCompleter- Parameters:
view- the view to add
-
processKeys
Process the autocompletion keys- Specified by:
processKeysin interfaceIAutoCompleter- 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.- Specified by:
updatePopupin interfaceIAutoCompleter- Parameters:
onlyIfVisible- true to update only if visible, false otherwise.
-
getCurrentView
-
isVisible
public boolean isVisible()Description copied from interface:IAutoCompleterCheck if the autocompleter is visible.- Specified by:
isVisiblein interfaceIAutoCompleter- Returns:
- true if visible, false otherwise.
-
setVisible
public void setVisible(boolean isVisible) Description copied from interface:IAutoCompleterSet the visibility of the autocompleter.- Specified by:
setVisiblein interfaceIAutoCompleter- Parameters:
isVisible- true to show, false to hide.
-
keyText
get the key text -
textDidChange
public void textDidChange()Description copied from interface:IAutoCompleterNotify the autocompleter that the text has changed.- Specified by:
textDidChangein interfaceIAutoCompleter
-
resetKeys
public final void resetKeys()Description copied from interface:IAutoCompleterReset the autocompletion keys.- Specified by:
resetKeysin interfaceIAutoCompleter
-