Ignore:
Timestamp:
2017-06-02T23:21:03+02:00 (7 years ago)
Author:
michael2402
Message:

Javadoc for public methods / classes in gui.util and gui.widgets

File:
1 edited

Legend:

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

    r11198 r12304  
    2525public class EditableList extends JPanel {
    2626
     27    /**
     28     * The title displayed in input dialog
     29     */
    2730    public final String title;
     31    /**
     32     * The list items
     33     */
    2834    public final JList<String> sourcesList = new JList<>(new DefaultListModel<String>());
     35    /**
     36     * The add button
     37     */
    2938    public final JButton addSrcButton = new JButton(tr("Add"));
     39    /**
     40     * The edit button displayed nex to the list
     41     */
    3042    public final JButton editSrcButton = new JButton(tr("Edit"));
     43    /**
     44     * The delete button
     45     */
    3146    public final JButton deleteSrcButton = new JButton(tr("Delete"));
    3247
     
    115130    }
    116131
     132    /**
     133     * Sets the list items by a given list of strings
     134     * @param items The items that should be set
     135     */
    117136    public void setItems(final Iterable<String> items) {
    118137        for (String source : items) {
     
    121140    }
    122141
     142    /**
     143     * Gets all items that are currently displayed
     144     * @return All items as list of strings
     145     */
    123146    public List<String> getItems() {
    124147        final List<String> items = new ArrayList<>(sourcesList.getModel().getSize());
Note: See TracChangeset for help on using the changeset viewer.