private void appendSymfonyVersions() { comboVersions.setModel(new ListComboBoxModel<>(new ArrayList<>())); ApplicationManager.getApplication().executeOnPooledThread(() -> { final List<SymfonyInstallerVersion> symfonyInstallerVersions1 = getVersions(); if (symfonyInstallerVersions1 != null) { UIUtil.invokeLaterIfNeeded(() -> comboVersions.setModel(new ListComboBoxModel<>(symfonyInstallerVersions1))); } }); }
/** * Creates a model backed by the specified map. * * @param map * the map backing this model */ public MapComboBoxModel(Map<K, V> map) { super(buildIndex(map)); this.map_data = map; }
/** * Selects an item from the model and returns that map value. * * @param selectedItem * selects the item at the specified index in this model * @return the value for the item at the selected index */ public V getValue(int selectedItem) { return getValue(getElementAt(selectedItem)); } }
@Override public int getSize() { return delegateModel.getSize(); }
public TwoPointPaintType getSelectedFillPaint() { return fillPaintModel.getSelectedItem(); }
@Override public void removeListDataListener(ListDataListener l) { delegateModel.removeListDataListener(l); }
@Override public E getElementAt(int index) { return delegateModel.getElementAt(index); }
@Override public void addListDataListener(ListDataListener l) { delegateModel.addListDataListener(l); }
/** * Selects an item from the model and returns that map value. * * @param selectedItem * selects the item at the specified index in this model * @return the value for the item at the selected index */ public V getValue(int selectedItem) { return getValue(getElementAt(selectedItem)); } }
/** * Creates a model backed by the specified map. * * @param map * the map backing this model */ public MapComboBoxModel(Map<K, V> map) { super(buildIndex(map)); this.map_data = map; }
public E getSelected() { return delegateModel.getSelectedItem(); }
/** * Selects an item from the model and returns that map value. * * @param selectedItem * selects the item at the specified index in this model * @return the value for the item at the selected index */ public V getValue(int selectedItem) { return getValue(getElementAt(selectedItem)); } }
/** * Creates a model backed by the specified map. * * @param map * the map backing this model */ public MapComboBoxModel(Map<K, V> map) { super(buildIndex(map)); this.map_data = map; }
@Override public Object getSelectedItem() { return delegateModel.getSelectedItem(); }
/** * Selects an item from the model and returns that map value. * * @param selectedItem * selects the item at the specified index in this model * @return the value for the item at the selected index */ public V getValue(int selectedItem) { return getValue(getElementAt(selectedItem)); } }
/** * Creates a model backed by the specified map. * * @param map * the map backing this model */ public MapComboBoxModel(Map<K, V> map) { super(buildIndex(map)); this.map_data = map; }
public TwoPointPaintType getSelectedStrokePaint() { return strokePaintModel.getSelectedItem(); }
/** * Selects an item from the model and returns that map value. * * @param selectedItem * selects the item at the specified index in this model * @return the value for the item at the selected index */ public V getValue(int selectedItem) { return getValue(getElementAt(selectedItem)); } }
/** * Creates a model backed by the specified map. * * @param map * the map backing this model */ public MapComboBoxModel(Map<K, V> map) { super(buildIndex(map)); this.map_data = map; }
public ShapeType getSelectedType() { return typeModel.getSelectedItem(); }