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

void com::jgoodies::binding::list::LinkedListModel::ReportingListIterator::remove (  )  [inline]

Removes from the list the last element that was returned by next or previous (optional operation). This call can only be made once per call to next or previous. It can be made only if ListIterator.add has not been called after the last call to next or previous.

Exceptions:
UnsupportedOperationException if the remove operation is not supported by this list iterator.
IllegalStateException neither next nor previous have been called, or remove or add have been called after the last call to * next or previous.

Definition at line 623 of file LinkedListModel.java.

References delegate, and lastReturnedIndex.

                             {
            int oldSize = size();
            delegate.remove();
            int newSize = size();
            if (newSize < oldSize)
                LinkedListModel.this.fireIntervalRemoved(lastReturnedIndex, lastReturnedIndex);
        }


Generated by  Doxygen 1.6.0   Back to index