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.ObjectThe 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.ObjectgetKey()Returns the key.java.lang.ObjectgetValue()Returns the value.voidsetValue(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.
-
-