Class AutoCompleterItem
- java.lang.Object
-
- org.omegat.gui.editor.autocompleter.AutoCompleterItem
-
public class AutoCompleterItem extends java.lang.ObjectA class to represent an item available for auto-completion. Upon confirming the selection, the item's payload will be inserted into the translation.Additional information such as comments, source terms, etc. can be stored in
extras. TheAutoCompleterListViewthat created the AutoCompleterItem should know how to use these values appropriately in itsAutoCompleterListView.itemToString(AutoCompleterItem)method.
-
-
Field Summary
Fields Modifier and Type Field Description intcursorAdjustjava.lang.String[]extrasbooleankeepSelectionjava.lang.StringpayloadintreplacementLength
-
Constructor Summary
Constructors Constructor Description AutoCompleterItem(java.lang.String payload, java.lang.String[] extras, int replacementLength)AutoCompleterItem(java.lang.String payload, java.lang.String[] extras, int cursorAdjust, boolean keepSelection, int replacementLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-