public abstract class AbstractAutoComboModel<T>
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel
Modifier and Type | Field and Description |
---|---|
protected AutoCompleteCombo<T> |
combo |
protected java.util.List<T> |
entries |
protected int |
max |
protected T |
selected |
Constructor and Description |
---|
AbstractAutoComboModel(AutoCompleteCombo<T> combo,
int max) |
Modifier and Type | Method and Description |
---|---|
void |
addToTop(java.lang.String val) |
void |
addValToTop(T val) |
boolean |
contains(java.lang.String val) |
boolean |
containsVal(T val) |
abstract T |
convertFromString(java.lang.String val) |
abstract java.lang.String |
convertToString(T val) |
abstract ISubscriptionIntermediateFuture<T> |
doSetPattern(java.lang.String pattern) |
protected void |
fireChangeEvents(int size1,
int size2) |
AutoCompleteCombo<T> |
getCombo()
Get the combo.
|
T |
getElementAt(int index) |
T |
getModelValue(java.lang.String text)
Get value from model that equals converted value.
|
java.lang.Object |
getSelectedItem() |
int |
getSize() |
ISubscriptionIntermediateFuture<T> |
setPattern(java.lang.String pattern) |
void |
setSelectedItem(java.lang.Object obj) |
void |
setSelectedItemQuiet(java.lang.Object obj) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
protected T selected
protected int max
protected java.util.List<T> entries
protected AutoCompleteCombo<T> combo
public AbstractAutoComboModel(AutoCompleteCombo<T> combo, int max)
public abstract T convertFromString(java.lang.String val)
public abstract java.lang.String convertToString(T val)
public void addToTop(java.lang.String val)
public boolean contains(java.lang.String val)
public void addValToTop(T val)
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
public void setSelectedItem(java.lang.Object obj)
setSelectedItem
in interface javax.swing.ComboBoxModel
public void setSelectedItemQuiet(java.lang.Object obj)
public int getSize()
getSize
in interface javax.swing.ListModel
public T getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
public boolean containsVal(T val)
public AutoCompleteCombo<T> getCombo()
public ISubscriptionIntermediateFuture<T> setPattern(java.lang.String pattern)
public abstract ISubscriptionIntermediateFuture<T> doSetPattern(java.lang.String pattern)
public T getModelValue(java.lang.String text)
protected void fireChangeEvents(int size1, int size2)