| java.lang.Object com.jeta.swingbuilder.gui.utils.IntegerComboMap
IntegerComboMap | public class IntegerComboMap (Code) | | Very often we have JComboBoxes that are loaded with String values but which
map to integers. So, we use this helper class to make using combo boxes in
these situations a little easier.
author: Jeff Tassin |
getSelectedValue | public int getSelectedValue(JComboBox cbox)(Code) | | the selected map value. -1 is returned if no item is selected inthe box or no match is found in this map for the selected item inthe combo. |
map | public void map(int key, String comboItem)(Code) | | Assigns a combo box item to an integer value
|
setSelectedItem | public void setSelectedItem(JComboBox cbox, int key)(Code) | | Sets the selected item in the combo box using the key.
|
|
|