Changeset 19328 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java
- Timestamp:
- 2025-02-19T18:20:12+01:00 (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java
r19103 r19328 72 72 73 73 /** 74 * Creates a {@code JosmComboBox} with a {@link JosmComboBoxModel} data model and75 * the specified prototype display value.76 * The default data model is an empty list of objects.77 * Use <code>addItem</code> to add items. By default the first item78 * in the data model becomes selected.79 *80 * @param prototypeDisplayValue the <code>Object</code> used to compute81 * the maximum number of elements to be displayed at once before82 * displaying a scroll bar83 *84 * @since 545085 * @deprecated use {@link #setPrototypeDisplayValue} instead.86 */87 @Deprecated(since = "18221", forRemoval = true)88 public JosmComboBox(E prototypeDisplayValue) {89 super(new JosmComboBoxModel<>());90 setPrototypeDisplayValue(prototypeDisplayValue);91 init();92 }93 94 /**95 74 * Creates a {@code JosmComboBox} that takes it items from an existing {@link JosmComboBoxModel} 96 75 * data model. … … 100 79 public JosmComboBox(JosmComboBoxModel<E> aModel) { 101 80 super(aModel); 102 init();103 }104 105 /**106 * Creates a {@code JosmComboBox} that takes it items from an existing {@link JosmComboBoxModel}107 * data model and sets the specified prototype display value.108 *109 * @param aModel the model that provides the displayed list of items110 * @param prototypeDisplayValue use this item to size the combobox (may be null)111 * @deprecated use {@link #setPrototypeDisplayValue} instead.112 */113 @Deprecated(since = "18221", forRemoval = true)114 public JosmComboBox(JosmComboBoxModel<E> aModel, E prototypeDisplayValue) {115 super(aModel);116 setPrototypeDisplayValue(prototypeDisplayValue);117 81 init(); 118 82 }
Note:
See TracChangeset
for help on using the changeset viewer.