/** * Adds a new entry to the model. * * @param key the key * @param cbitem the display value. */ public void add(final Object key, final Object cbitem) { final ComboBoxItemPair con = new ComboBoxItemPair(key, cbitem); this.data.add(con); final ListDataEvent evt = new ListDataEvent (this, ListDataEvent.INTERVAL_ADDED, this.data.size() - 2, this.data.size() - 2); fireListDataEvent(evt); }
/** * Adds a new entry to the model. * * @param key the key * @param cbitem the display value. */ public void add(final Object key, final Object cbitem) { final ComboBoxItemPair con = new ComboBoxItemPair(key, cbitem); this.data.add(con); final ListDataEvent evt = new ListDataEvent (this, ListDataEvent.INTERVAL_ADDED, this.data.size() - 2, this.data.size() - 2); fireListDataEvent(evt); }
/** * Adds a new entry to the model. * * @param key the key * @param cbitem the display value. */ public void add(final Object key, final Object cbitem) { final ComboBoxItemPair con = new ComboBoxItemPair(key, cbitem); data.add(con); final ListDataEvent evt = new ListDataEvent (this, ListDataEvent.INTERVAL_ADDED, data.size() - 2, data.size() - 2); fireListDataEvent(evt); }