Skip to content

Commit

Permalink
Allow removing all elements
Browse files Browse the repository at this point in the history
  • Loading branch information
hlfernandez committed Sep 3, 2020
1 parent d974267 commit 9c7324a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions gc4s/src/main/java/org/sing_group/gc4s/input/list/JInputList.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,17 @@ public void addElements(String ...elements) {
itemsListModel.addElements(Arrays.asList(elements));
this.itemsList.updateUI();
}

/**
* Removes all elements from the input list.
*/
public void removeAllElements() {
itemsListModel.removeAllElements();
this.itemsList.updateUI();
}

/**
* Adds a listener to the list that's notified each time a change to the
* data model occurs.
/**
* Adds a listener to the list that's notified each time a change to the data model occurs.
*
* @param l the {@code ListDataListener} to be added
*/
Expand Down

0 comments on commit 9c7324a

Please sign in to comment.