net.java.sip.communicator.impl.gui.customcontrols
Class SIPCommSmartComboBox.FilterableComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
net.java.sip.communicator.impl.gui.customcontrols.SIPCommSmartComboBox.FilterableComboBoxModel
- All Implemented Interfaces:
- Serializable, ComboBoxModel, ListModel, MutableComboBoxModel
- Enclosing class:
- SIPCommSmartComboBox
public static class SIPCommSmartComboBox.FilterableComboBoxModel
- extends AbstractListModel
- implements MutableComboBoxModel
The data model used for this combo box. Filters the contents of the
combo box popup according to the user input.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIPCommSmartComboBox.FilterableComboBoxModel
public SIPCommSmartComboBox.FilterableComboBoxModel()
contains
public boolean contains(Object obj)
addElement
public void addElement(Object obj)
- Specified by:
addElement in interface MutableComboBoxModel
removeElement
public void removeElement(Object obj)
- Specified by:
removeElement in interface MutableComboBoxModel
removeElementAt
public void removeElementAt(int index)
- Specified by:
removeElementAt in interface MutableComboBoxModel
insertElementAt
public void insertElementAt(Object obj,
int index)
- Specified by:
insertElementAt in interface MutableComboBoxModel
setFilter
public void setFilter(SIPCommSmartComboBox.Filter filter)
updateFilteredItems
protected void updateFilteredItems()
getSize
public int getSize()
- Specified by:
getSize in interface ListModel
getElementAt
public Object getElementAt(int index)
- Specified by:
getElementAt in interface ListModel
getSelectedItem
public Object getSelectedItem()
- Specified by:
getSelectedItem in interface ComboBoxModel
setSelectedItem
public void setSelectedItem(Object val)
- Specified by:
setSelectedItem in interface ComboBoxModel
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.