public abstract class AutoCompleterTableView extends AbstractAutoCompleterView
completer
Constructor and Description |
---|
AutoCompleterTableView(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
int |
getPreferredHeight()
get the preferred height of the component
|
int |
getPreferredWidth()
get the preferred width of the component
|
int |
getRowCount()
return the size of the data list / array.
|
AutoCompleterItem |
getSelectedValue()
get the selected value
|
java.awt.Point |
getSelectionPoint()
Get the point selected in the table.
|
javax.swing.JTable |
getTable() |
java.awt.Component |
getViewContent()
Obtain the content to put in the autocompleter popup.
|
boolean |
processKeys(java.awt.event.KeyEvent e)
Process the autocompletion keys
|
protected void |
selectFirstPossibleValue()
Select the first value in the table (top left).
|
protected void |
selectFirstPossibleValueInLine()
Select the first value in the current line.
|
protected void |
selectLastPossibleValue()
Select the last value in the table (bottom right).
|
protected void |
selectLastPossibleValueInLine()
Select the last value in the current line.
|
protected void |
selectNextPossibleValueByPage()
Selects the item in the list following the current one by completer.pageRowCount items or go to the first item.
|
protected void |
selectNextPossibleValueDown()
Selects the next item in the list.
|
protected void |
selectNextPossibleValueRight()
Go one cell to the right.
|
protected void |
selectPreviousPossibleValueByPage()
Selects the item in the list preceding the current one by completer.pageRowCount items or go to the first item.
|
protected void |
selectPreviousPossibleValueLeft()
Go one cell to the left.
|
protected void |
selectPreviousPossibleValueUp()
Selects the previous item in the list.
|
void |
setSelection(java.awt.Point p)
Set the selection.
|
getLeadingText, getModifiedRowCount, getName, getTargetLanguage, getTokenizer, isEnabled, setParent, shouldCloseOnSelection, shouldPopUp, updateViewData
public void setSelection(java.awt.Point p)
p
- the new pointpublic javax.swing.JTable getTable()
public java.awt.Component getViewContent()
AbstractAutoCompleterView
getViewContent
in class AbstractAutoCompleterView
public java.awt.Point getSelectionPoint()
public boolean processKeys(java.awt.event.KeyEvent e)
AbstractAutoCompleterView
processKeys
in class AbstractAutoCompleterView
e
- the key event to processprotected void selectNextPossibleValueDown()
protected void selectFirstPossibleValue()
protected void selectLastPossibleValue()
protected void selectFirstPossibleValueInLine()
protected void selectLastPossibleValueInLine()
protected void selectNextPossibleValueRight()
protected void selectNextPossibleValueByPage()
protected void selectPreviousPossibleValueUp()
protected void selectPreviousPossibleValueLeft()
protected void selectPreviousPossibleValueByPage()
public int getRowCount()
AbstractAutoCompleterView
getRowCount
in class AbstractAutoCompleterView
public int getPreferredHeight()
AbstractAutoCompleterView
getPreferredHeight
in class AbstractAutoCompleterView
public int getPreferredWidth()
AbstractAutoCompleterView
getPreferredWidth
in class AbstractAutoCompleterView
public AutoCompleterItem getSelectedValue()
AbstractAutoCompleterView
getSelectedValue
in class AbstractAutoCompleterView