public abstract class AbstractAutoComboModel<T> extends AbstractListModel implements ComboBoxModel
Constructor and Description |
---|
AbstractAutoComboModel(AutoCompleteCombo<T> combo,
int max) |
Modifier and Type | Method and Description |
---|---|
void |
addToTop(String val) |
void |
addValToTop(T val) |
boolean |
contains(String val) |
boolean |
containsVal(T val) |
abstract T |
convertFromString(String val) |
abstract String |
convertToString(T val) |
abstract ISubscriptionIntermediateFuture<T> |
doSetPattern(String pattern) |
AutoCompleteCombo<T> |
getCombo()
Get the combo.
|
T |
getElementAt(int index) |
T |
getModelValue(String text)
Get value from model that equals converted value.
|
Object |
getSelectedItem() |
int |
getSize() |
ISubscriptionIntermediateFuture<T> |
setPattern(String pattern) |
void |
setSelectedItem(Object obj) |
void |
setSelectedItemQuiet(Object obj) |
addListDataListener, getListDataListeners, getListeners, removeListDataListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public AbstractAutoComboModel(AutoCompleteCombo<T> combo, int max)
public void addToTop(String val)
public boolean contains(String val)
public void addValToTop(T val)
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public void setSelectedItem(Object obj)
setSelectedItem
in interface ComboBoxModel
public void setSelectedItemQuiet(Object obj)
public T getElementAt(int index)
getElementAt
in interface ListModel
public boolean containsVal(T val)
public AutoCompleteCombo<T> getCombo()
public ISubscriptionIntermediateFuture<T> setPattern(String pattern)
public abstract ISubscriptionIntermediateFuture<T> doSetPattern(String pattern)
Copyright © 2013. All Rights Reserved.