Class AutoCompleterTableView
java.lang.Object
org.omegat.gui.editor.autocompleter.AbstractAutoCompleterView
org.omegat.gui.editor.autocompleter.AutoCompleterTableView
- Direct Known Subclasses:
CharTableAutoCompleterView
Table-based auto-completer view
-
Constructor Summary
ConstructorsConstructorDescriptionAutoCompleterTableView(String name) Deprecated.AutoCompleterTableView(String name, AutoCompleter completer) -
Method Summary
Modifier and TypeMethodDescriptionintget the preferred height of the componentintget the preferred width of the componentintreturn the size of the data list / array.get the selected valueGet the point selected in the table.getTable()Obtain the content to put in the autocompleter popup.booleanProcess the autocompletion keysvoidSet the selection.Methods inherited from class org.omegat.gui.editor.autocompleter.AbstractAutoCompleterView
getName, getTargetLanguage, getTokenizer, setParent, shouldCloseOnSelection, shouldPopUp, updateViewData
-
Constructor Details
-
AutoCompleterTableView
Deprecated. -
AutoCompleterTableView
-
-
Method Details
-
setSelection
Set the selection.- Parameters:
p- the new point
-
getTable
-
getViewContent
Description copied from class:AbstractAutoCompleterViewObtain the content to put in the autocompleter popup. The view should also do any other preparation necessary for display.- Specified by:
getViewContentin classAbstractAutoCompleterView- Returns:
- the component to show in the autocompleter popup
-
getSelectionPoint
Get the point selected in the table.- Returns:
-
processKeys
Description copied from class:AbstractAutoCompleterViewProcess the autocompletion keys- Specified by:
processKeysin classAbstractAutoCompleterView- Parameters:
e- the key event to process- Returns:
- true if a key has been processed, false if otherwise.
-
getRowCount
public int getRowCount()Description copied from class:AbstractAutoCompleterViewreturn the size of the data list / array.- Specified by:
getRowCountin classAbstractAutoCompleterView- Returns:
- the size of the data list / array.
-
getPreferredHeight
public int getPreferredHeight()Description copied from class:AbstractAutoCompleterViewget the preferred height of the component- Specified by:
getPreferredHeightin classAbstractAutoCompleterView- Returns:
- the preferred height of the component
-
getPreferredWidth
public int getPreferredWidth()Description copied from class:AbstractAutoCompleterViewget the preferred width of the component- Specified by:
getPreferredWidthin classAbstractAutoCompleterView- Returns:
- the preferred width of the component
-
getSelectedValue
Description copied from class:AbstractAutoCompleterViewget the selected value- Specified by:
getSelectedValuein classAbstractAutoCompleterView- Returns:
- the selected value
-