Example usage for javax.swing.event ListDataEvent INTERVAL_ADDED

List of usage examples for javax.swing.event ListDataEvent INTERVAL_ADDED

Introduction

In this page you can find the example usage for javax.swing.event ListDataEvent INTERVAL_ADDED.

Prototype

int INTERVAL_ADDED

To view the source code for javax.swing.event ListDataEvent INTERVAL_ADDED.

Click Source Link

Document

Identifies the addition of one or more contiguous items to the list

Usage

From source file:put.semantic.fcanew.ui.FilesListModel.java

public void add(File[] files) {
    if (files == null || files.length == 0) {
        return;//from  w w  w .ja  v a2  s.  c  o m
    }
    int begin = data.size();
    data.addAll(Arrays.asList(files));
    int end = data.size() - 1;
    ListDataEvent e = new ListDataEvent(this, ListDataEvent.INTERVAL_ADDED, begin, end);
    for (ListDataListener l : listeners) {
        l.intervalAdded(e);
    }
}