Ignore:
Timestamp:
2025-02-19T18:20:12+01:00 (6 weeks ago)
Author:
stoecker
Message:

see #24104 - removed deprecated functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java

    r19103 r19328  
    7272
    7373    /**
    74      * Creates a {@code JosmComboBox} with a {@link JosmComboBoxModel} data model and
    75      * 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 item
    78      * in the data model becomes selected.
    79      *
    80      * @param prototypeDisplayValue the <code>Object</code> used to compute
    81      *      the maximum number of elements to be displayed at once before
    82      *      displaying a scroll bar
    83      *
    84      * @since 5450
    85      * @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     /**
    9574     * Creates a {@code JosmComboBox} that takes it items from an existing {@link JosmComboBoxModel}
    9675     * data model.
     
    10079    public JosmComboBox(JosmComboBoxModel<E> aModel) {
    10180        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 items
    110      * @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);
    11781        init();
    11882    }
Note: See TracChangeset for help on using the changeset viewer.