Package org.jfree.ui

Class KeyedComboBoxModel.ComboBoxItemPair

java.lang.Object
org.jfree.ui.KeyedComboBoxModel.ComboBoxItemPair
Enclosing class:
KeyedComboBoxModel

private static class KeyedComboBoxModel.ComboBoxItemPair extends Object
The internal data carrier to map keys to values and vice versa.
  • Field Details

    • key

      private Object key
      The key.
    • value

      private Object value
      The value for the key.
  • Constructor Details

    • ComboBoxItemPair

      public ComboBoxItemPair(Object key, Object value)
      Creates a new item pair for the given key and value. The value can be changed later, if needed.
      Parameters:
      key - the key
      value - the value
  • Method Details

    • getKey

      public Object getKey()
      Returns the key.
      Returns:
      the key.
    • getValue

      public Object getValue()
      Returns the value.
      Returns:
      the value for this key.
    • setValue

      public void setValue(Object value)
      Redefines the value stored for that key.
      Parameters:
      value - the new value.