info.rolandkrueger.roklib.ui.swing.rapidsuggest
Class SuggestionComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
javax.swing.DefaultComboBoxModel
info.rolandkrueger.roklib.ui.swing.rapidsuggest.SuggestionComboBoxModel
- All Implemented Interfaces:
- Serializable, ComboBoxModel, ListModel, MutableComboBoxModel
public class SuggestionComboBoxModel
- extends DefaultComboBoxModel
- Version:
- CVS $Id: SuggestionComboBoxModel.java 128 2010-03-05 06:45:32Z
roland $
- Author:
- Roland Krueger (rkrueger@rumms.uni-mannheim.de)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tstMap
private TernarySearchTreeMap tstMap
selectedItemIndex
private int selectedItemIndex
SuggestionComboBoxModel
public SuggestionComboBoxModel(Collection items)
SuggestionComboBoxModel
public SuggestionComboBoxModel(Object[] items)
SuggestionComboBoxModel
public SuggestionComboBoxModel()
SuggestionComboBoxModel
public SuggestionComboBoxModel(TernarySearchTreeMap map)
getSuggestion
public String getSuggestion(String prefix)
contains
public boolean contains(Object o,
boolean caseSensitive)
setSelectedItem
public void setSelectedItem(Object anObject)
- Specified by:
setSelectedItem
in interface ComboBoxModel
- Overrides:
setSelectedItem
in class DefaultComboBoxModel
getSelectedItem
public Object getSelectedItem()
- Specified by:
getSelectedItem
in interface ComboBoxModel
- Overrides:
getSelectedItem
in class DefaultComboBoxModel
removeElementAt
public void removeElementAt(int index)
- Specified by:
removeElementAt
in interface MutableComboBoxModel
- Overrides:
removeElementAt
in class DefaultComboBoxModel
addElement
public void addElement(Object obj)
- Specified by:
addElement
in interface MutableComboBoxModel
- Overrides:
addElement
in class DefaultComboBoxModel
removeElement
public void removeElement(Object obj)
- Specified by:
removeElement
in interface MutableComboBoxModel
- Overrides:
removeElement
in class DefaultComboBoxModel
insertElementAt
public void insertElementAt(Object obj,
int index)
- Specified by:
insertElementAt
in interface MutableComboBoxModel
- Overrides:
insertElementAt
in class DefaultComboBoxModel
getSize
public int getSize()
- Specified by:
getSize
in interface ListModel
- Overrides:
getSize
in class DefaultComboBoxModel
getElementAt
public Object getElementAt(int index)
- Specified by:
getElementAt
in interface ListModel
- Overrides:
getElementAt
in class DefaultComboBoxModel
Copyright © 2007-2011. All Rights Reserved.