public class FilterAutoCompletionListener extends AutoCompletionListener
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SORT_PROPERTY |
| Constructor and Description |
|---|
FilterAutoCompletionListener() |
FilterAutoCompletionListener(JComboBox combo)
Create and add the autocompletion listener to JComboBox
|
FilterAutoCompletionListener(JComboBox combo,
int maxValue)
Create and add the autocompletion listener to JComboBox
|
FilterAutoCompletionListener(JComboBox combo,
int maxResults,
String sortProperty)
Create and add the autocompletion listener to JComboBox
|
| Modifier and Type | Method and Description |
|---|---|
protected List |
getList(String editing) |
int |
getMaxResults() |
Dao |
getPersistentService() |
String |
getSortProperty() |
void |
setMaxResults(int maxResults) |
void |
setPersistentService(Dao persistentService) |
void |
setSortProperty(String sortProperty) |
getCombo, keyReleased, keyTyped, listenOn, setCombokeyPressedpublic static final String DEFAULT_SORT_PROPERTY
public FilterAutoCompletionListener()
public FilterAutoCompletionListener(JComboBox combo)
combo - the combo to add autocompletionpublic FilterAutoCompletionListener(JComboBox combo, int maxValue)
combo - the combo to add autocompletion-maxValue - maximun number of results.public FilterAutoCompletionListener(JComboBox combo, int maxResults, String sortProperty)
combo - the combo to add autocompletion-maxResults - maximun number of results.sortProperty - property for ordering, by default "name".protected List getList(String editing)
getList in class AutoCompletionListenerediting - Stringpublic Dao getPersistentService()
public void setPersistentService(Dao persistentService)
persistentService - the persistentService to setpublic int getMaxResults()
public void setMaxResults(int maxResults)
maxResults - the maxResults to setpublic String getSortProperty()
public void setSortProperty(String sortProperty)
sortProperty - the sortProperty to setCopyright © 2014 JDAL. All Rights Reserved.