Package org.jfree.ui
Class KeyedComboBoxModel.ComboBoxItemPair
- java.lang.Object
-
- org.jfree.ui.KeyedComboBoxModel.ComboBoxItemPair
-
- Enclosing class:
- KeyedComboBoxModel
private static class KeyedComboBoxModel.ComboBoxItemPair extends java.lang.Object
The internal data carrier to map keys to values and vice versa.
-
-
Constructor Summary
Constructors Constructor Description ComboBoxItemPair(java.lang.Object key, java.lang.Object value)
Creates a new item pair for the given key and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getKey()
Returns the key.java.lang.Object
getValue()
Returns the value.void
setValue(java.lang.Object value)
Redefines the value stored for that key.
-
-
-
Method Detail
-
getKey
public java.lang.Object getKey()
Returns the key.- Returns:
- the key.
-
getValue
public java.lang.Object getValue()
Returns the value.- Returns:
- the value for this key.
-
setValue
public void setValue(java.lang.Object value)
Redefines the value stored for that key.- Parameters:
value
- the new value.
-
-