Class AutoCompleterItem
- java.lang.Object
-
- org.omegat.gui.editor.autocompleter.AutoCompleterItem
-
public class AutoCompleterItem extends java.lang.Object
A 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
. TheAutoCompleterListView
that created the AutoCompleterItem should know how to use these values appropriately in itsAutoCompleterListView.itemToString(AutoCompleterItem)
method.
-
-
Field Summary
Fields Modifier and Type Field Description int
cursorAdjust
java.lang.String[]
extras
boolean
keepSelection
java.lang.String
payload
int
replacementLength
-
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 boolean
equals(java.lang.Object obj)
int
hashCode()
-