Package org.omegat.gui.editor
Class TagAutoCompleterView
- java.lang.Object
-
- org.omegat.gui.editor.autocompleter.AbstractAutoCompleterView
-
- org.omegat.gui.editor.autocompleter.AutoCompleterListView
-
- org.omegat.gui.editor.TagAutoCompleterView
-
public class TagAutoCompleterView extends AutoCompleterListView
An AutoCompleterView for inserting missing tags.
-
-
Constructor Summary
Constructors Constructor Description TagAutoCompleterView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AutoCompleterItem>
computeListData(java.lang.String prevText, boolean contextualOnly)
Compute the items visible in the auto-completer listITokenizer
getTokenizer()
Return the tokenizer for use with the view.java.lang.String
itemToString(AutoCompleterItem item)
Each view should determine how to print a view item.-
Methods inherited from class org.omegat.gui.editor.autocompleter.AutoCompleterListView
getList, getPreferredHeight, getPreferredWidth, getRowCount, getSelectedValue, getViewContent, processKeys, shouldPopUp, updateViewData
-
Methods inherited from class org.omegat.gui.editor.autocompleter.AbstractAutoCompleterView
getName, getTargetLanguage, setParent, shouldCloseOnSelection
-
-
-
-
Method Detail
-
computeListData
public java.util.List<AutoCompleterItem> computeListData(java.lang.String prevText, boolean contextualOnly)
Description copied from class:AutoCompleterListView
Compute the items visible in the auto-completer list- Specified by:
computeListData
in classAutoCompleterListView
- Parameters:
prevText
- the text in the editing field up to the cursor location- Returns:
- a list of AutoCompleterItems.
-
getTokenizer
public ITokenizer getTokenizer()
Description copied from class:AbstractAutoCompleterView
Return the tokenizer for use with the view. Custom views should override this if they have special tokenization needs.- Overrides:
getTokenizer
in classAbstractAutoCompleterView
-
itemToString
public java.lang.String itemToString(AutoCompleterItem item)
Description copied from class:AutoCompleterListView
Each view should determine how to print a view item.- Specified by:
itemToString
in classAutoCompleterListView
- Parameters:
item
- The item to print- Returns:
- A string representation of the view item
-
-