public class JaxxFilterableComboBoxModel<E> extends JaxxDefaultComboBoxModel<E>
| Modifier and Type | Field and Description |
|---|---|
protected org.nuiton.decorator.JXPathDecorator<E> |
decorator
the decorator of data
|
static Character |
DEFAULT_WILDCARD_CHARACTER |
protected List<E> |
filteredItems |
protected List<Predicate<E>> |
filters |
protected String |
filterText |
protected Character |
wildcardCharacter |
delegate, selectedObjectlistenerList| Constructor and Description |
|---|
JaxxFilterableComboBoxModel() |
JaxxFilterableComboBoxModel(Collection<E> v) |
JaxxFilterableComboBoxModel(E... items) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllElements(Collection<E> objects) |
void |
addElement(Object anObject) |
void |
addFilter(Predicate<E> filter) |
protected void |
applyFilter() |
protected boolean |
canAddElement(E element) |
void |
clearFilters() |
String |
decorateElement(E element) |
org.nuiton.decorator.JXPathDecorator<E> |
getDecorator() |
E |
getElementAt(int index) |
String |
getFilterText() |
int |
getIndexOf(E anObject) |
int |
getSize() |
Character |
getWildcardCharacter() |
void |
insertElementAt(Object anObject,
int index) |
boolean |
isAdjusting() |
void |
refreshFilteredElements() |
void |
removeAllElements()
Empties the list.
|
void |
removeElement(Object anObject) |
void |
removeElementAt(int index) |
void |
removeFilter(Predicate<E> filter) |
void |
setAdjusting(boolean adjusting) |
void |
setDecorator(org.nuiton.decorator.JXPathDecorator<E> decorator) |
void |
setFilterText(String filterText) |
void |
setWildcardCharacter(Character wildcardCharacter) |
addWillChangeSelectedItemListener, fireSelectedItemWillChanged, getSelectedItem, removeWillChangeSelectedItemListener, setAllElements, setSelectedItemaddListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerpublic static final Character DEFAULT_WILDCARD_CHARACTER
protected String filterText
protected Character wildcardCharacter
protected org.nuiton.decorator.JXPathDecorator<E> decorator
public JaxxFilterableComboBoxModel()
@SafeVarargs public JaxxFilterableComboBoxModel(E... items)
public JaxxFilterableComboBoxModel(Collection<E> v)
public int getIndexOf(E anObject)
getIndexOf in class JaxxDefaultComboBoxModel<E>public void addAllElements(Collection<E> objects)
addAllElements in class JaxxDefaultComboBoxModel<E>public void removeAllElements()
JaxxDefaultComboBoxModelremoveAllElements in class JaxxDefaultComboBoxModel<E>public int getSize()
public E getElementAt(int index)
getElementAt in interface ListModel<E>getElementAt in class JaxxDefaultComboBoxModel<E>public void addElement(Object anObject)
addElement in interface MutableComboBoxModel<E>addElement in class JaxxDefaultComboBoxModel<E>public void insertElementAt(Object anObject, int index)
insertElementAt in interface MutableComboBoxModel<E>insertElementAt in class JaxxDefaultComboBoxModel<E>public void removeElementAt(int index)
removeElementAt in interface MutableComboBoxModel<E>removeElementAt in class JaxxDefaultComboBoxModel<E>public void removeElement(Object anObject)
removeElement in interface MutableComboBoxModel<E>removeElement in class JaxxDefaultComboBoxModel<E>public String getFilterText()
public void setFilterText(String filterText)
public Character getWildcardCharacter()
public void setWildcardCharacter(Character wildcardCharacter)
public org.nuiton.decorator.JXPathDecorator<E> getDecorator()
public void setDecorator(org.nuiton.decorator.JXPathDecorator<E> decorator)
public void clearFilters()
public void refreshFilteredElements()
protected void applyFilter()
public boolean isAdjusting()
public void setAdjusting(boolean adjusting)
protected boolean canAddElement(E element)
Copyright © 2008–2020 Ultreia.io. All rights reserved.