org.jdesktop.swingx.combobox
Class MapComboBoxModel
java.lang.Object
org.jdesktop.swingx.combobox.ListComboBoxModel
org.jdesktop.swingx.combobox.MapComboBoxModel
- All Implemented Interfaces:
- ActionListener, EventListener, ComboBoxModel, ListModel
public class MapComboBoxModel
- extends ListComboBoxModel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
map_data
protected Map map_data
index
protected List index
invertedIndex
protected List invertedIndex
inverted
protected boolean inverted
MapComboBoxModel
public MapComboBoxModel()
MapComboBoxModel
public MapComboBoxModel(Map map)
buildIndex
protected void buildIndex()
getElementAt
public Object getElementAt(int i)
- Description copied from interface:
javax.swing.ListModel
- Returns the value at the specified index.
- Specified by:
getElementAt
in interface ListModel
- Overrides:
getElementAt
in class ListComboBoxModel
- Parameters:
i
- the requested index
- Returns:
- the value at
index
getSize
public int getSize()
- Description copied from interface:
javax.swing.ListModel
- Returns the length of the list.
- Specified by:
getSize
in interface ListModel
- Overrides:
getSize
in class ListComboBoxModel
- Returns:
- the length of the list
getMap
public Map getMap()
actionPerformed
public void actionPerformed(ActionEvent evt)
- Description copied from interface:
java.awt.event.ActionListener
- Invoked when an action occurs.
- Specified by:
actionPerformed
in interface ActionListener
- Overrides:
actionPerformed
in class ListComboBoxModel
getValue
public Object getValue(Object selectedItem)
getValue
public Object getValue(int selectedItem)