Example usage for com.jgoodies.common.collect ArrayListModel removeAll

List of usage examples for com.jgoodies.common.collect ArrayListModel removeAll

Introduction

In this page you can find the example usage for com.jgoodies.common.collect ArrayListModel removeAll.

Prototype

@Override
public boolean removeAll(Collection<?> c) 

Source Link

Document

Removes from this collection all of its elements that are contained in the specified collection (optional operation).

Usage

From source file:cz.vity.freerapid.gui.dialogs.DownloadHistoryDialog.java

public void removeSelected(int[] indexes) {
    final ArrayListModel<FileHistoryItem> items = getItems();
    final java.util.List<FileHistoryItem> toRemoveList = getSelectionToList(indexes);
    manager.removeItems(toRemoveList);/*from w w w. java  2s.c o m*/
    items.removeAll(toRemoveList);
}