public abstract class AbstractAutoCompleterView
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AutoCompleter |
completer
the completer
|
Constructor and Description |
---|
AbstractAutoCompleterView(java.lang.String name)
Creates a new auto-completer view.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getLeadingText() |
protected int |
getModifiedRowCount()
Return a modified row count.
|
java.lang.String |
getName() |
abstract int |
getPreferredHeight()
get the preferred height of the component
|
abstract int |
getPreferredWidth()
get the preferred width of the component
|
abstract int |
getRowCount()
return the size of the data list / array.
|
abstract AutoCompleterItem |
getSelectedValue()
get the selected value
|
Language |
getTargetLanguage()
Return the target language currently in use.
|
ITokenizer |
getTokenizer()
Return the tokenizer for use with the view.
|
abstract java.awt.Component |
getViewContent()
Obtain the content to put in the autocompleter popup.
|
protected boolean |
isEnabled()
Indicates whether the view should be considered "on" or "off".
|
abstract boolean |
processKeys(java.awt.event.KeyEvent e)
Process the autocompletion keys
|
void |
setParent(AutoCompleter completer)
Set the AutoCompleter that this view belongs to.
|
boolean |
shouldCloseOnSelection()
Indicates whether or not the AutoCompleter should close by default when the
user confirms a selection.
|
abstract boolean |
shouldPopUp()
Return true to indicate that the view has relevant contextual suggestions
that merit displaying the AutoCompleter popup unprompted.
|
abstract void |
updateViewData()
Update the view data
|
protected AutoCompleter completer
public AbstractAutoCompleterView(java.lang.String name)
name
- the name of this viewpublic java.lang.String getName()
public void setParent(AutoCompleter completer)
completer
- public ITokenizer getTokenizer()
public Language getTargetLanguage()
public abstract boolean processKeys(java.awt.event.KeyEvent e)
e
- the key event to processpublic abstract int getRowCount()
public abstract int getPreferredHeight()
public abstract int getPreferredWidth()
public abstract AutoCompleterItem getSelectedValue()
public abstract void updateViewData()
public abstract java.awt.Component getViewContent()
protected int getModifiedRowCount()
public abstract boolean shouldPopUp()
public boolean shouldCloseOnSelection()
protected java.lang.String getLeadingText()
protected boolean isEnabled()