11371138113911401141114211431144114511461147
for (int i = end; i >= start; i--) { items.removeElementAt(i); } ListPeer peer = (ListPeer)this.peer; if (peer != null) { peer.delItems(start, end); } } /* * Serialization support. Since the value of the selected
11561157115811591160116111621163116411651166
598599600601602603604605606607608
ListPeer l = (ListPeer) peer; /* We add first and then remove so that the selected item remains the same */ l.add (item, index + 1); l.delItems (index, index); } } /** * Returns the index of the currently selected item. -1 will be returned
490491492493494495496497498499500
if (selected) select(index); ListPeer peer = (ListPeer) getPeer(); if (peer != null) peer.delItems (index, index); } /** * Deletes the item at the specified index. *
526527528529530531532533534535536
for (int i = end; i >= start; --i) items.removeElementAt (i); if (peer != null) { ListPeer l = (ListPeer) peer; l.delItems (start, end); } } /** * Deletes the first occurrence of the specified item from the list.