Package org.jfree.ui
Class KeyedComboBoxModel.ComboBoxItemPair
java.lang.Object
org.jfree.ui.KeyedComboBoxModel.ComboBoxItemPair
- Enclosing class:
KeyedComboBoxModel
The internal data carrier to map keys to values and vice versa.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionComboBoxItemPair
(Object key, Object value) Creates a new item pair for the given key and value. -
Method Summary
-
Field Details
-
key
The key. -
value
The value for the key.
-
-
Constructor Details
-
ComboBoxItemPair
Creates a new item pair for the given key and value. The value can be changed later, if needed.- Parameters:
key
- the keyvalue
- the value
-
-
Method Details
-
getKey
Returns the key.- Returns:
- the key.
-
getValue
Returns the value.- Returns:
- the value for this key.
-
setValue
Redefines the value stored for that key.- Parameters:
value
- the new value.
-