Logo Search packages:      
Sourcecode: libjgoodies-binding-java version File versions

void com::jgoodies::binding::list::LinkedListModel::fireContentsChanged ( int  index0,
int  index1 
) [inline, private]

This method must be called after one or more elements of the list change. The changed elements are specified by the closed interval index0, index1 -- the end points are included. Note that index0 need not be less than or equal to index1.

index0 one end of the new interval
index1 the other end of the new interval
See also:

Definition at line 416 of file LinkedListModel.java.

References getEventListenerList().

        Object[] listeners = getEventListenerList().getListenerList();
        ListDataEvent e = null;

        for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ListDataListener.class) {
                if (e == null) {
                    e = new ListDataEvent(this,
                            ListDataEvent.CONTENTS_CHANGED, index0, index1);
                ((ListDataListener) listeners[i + 1]).contentsChanged(e);

Generated by  Doxygen 1.6.0   Back to index