info.joseluismartin.gui.action
Class FilterAutoCompletionListener
java.lang.Object
java.awt.event.KeyAdapter
info.joseluismartin.gui.action.AutoCompletionListener
info.joseluismartin.gui.action.FilterAutoCompletionListener
- All Implemented Interfaces:
- KeyListener, EventListener
public class FilterAutoCompletionListener
- extends AutoCompletionListener
AutoComletionListener based on PersistentService and PatternFilter
- Author:
- Jose Luis Martin - (jlm@joseluismartin.info)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SORT_PROPERTY
public static final String DEFAULT_SORT_PROPERTY
- See Also:
- Constant Field Values
FilterAutoCompletionListener
public FilterAutoCompletionListener()
FilterAutoCompletionListener
public FilterAutoCompletionListener(JComboBox combo)
- Create and add the autocompletion listener to JComboBox
- Parameters:
combo - the combo to add autocompletion
FilterAutoCompletionListener
public FilterAutoCompletionListener(JComboBox combo,
int maxValue)
- Create and add the autocompletion listener to JComboBox
- Parameters:
combo - the combo to add autocompletion-maxValue - maximun number of results.
FilterAutoCompletionListener
public FilterAutoCompletionListener(JComboBox combo,
int maxResults,
String sortProperty)
- Create and add the autocompletion listener to JComboBox
- Parameters:
combo - the combo to add autocompletion-maxResults - maximun number of results.sortProperty - property for ordering, by default "name".
getList
protected List getList(String editing)
- Specified by:
getList in class AutoCompletionListener
- Parameters:
editing - String
- Returns:
- a List of objects with match editing string
getPersistentService
public PersistentService getPersistentService()
- Returns:
- the persistentService
setPersistentService
public void setPersistentService(PersistentService persistentService)
- Parameters:
persistentService - the persistentService to set
getMaxResults
public int getMaxResults()
- Returns:
- the maxResults
setMaxResults
public void setMaxResults(int maxResults)
- Parameters:
maxResults - the maxResults to set
getSortProperty
public String getSortProperty()
- Returns:
- the sortProperty
setSortProperty
public void setSortProperty(String sortProperty)
- Parameters:
sortProperty - the sortProperty to set
Copyright © 2012 JDAL. All Rights Reserved.