private void clearDestinationSelected() { Object selected[] = destList.getSelectedValues(); for (int i = selected.length - 1; i >= 0; --i) { destListModel.removeElement(selected[i]); } destList.getSelectionModel().clearSelection(); }
private void clearSourceSelected() { Object selected[] = sourceList.getSelectedValues(); for (int i = selected.length - 1; i >= 0; --i) { sourceListModel.removeElement(selected[i]); } sourceList.getSelectionModel().clearSelection(); }
public Iterator destinationIterator() { return destListModel.iterator(); }
public Iterator sourceIterator() { return sourceListModel.iterator(); }
private void fillListModel(SortedListModel1 model, Object newValues[]) { model.addAll(newValues); }
private void fillListModel(SortedListModel1 model, ListModel newValues) { int size = newValues.getSize(); for (int i = 0; i < size; i++) { model.add(newValues.getElementAt(i)); } }
public void clearDestinationListModel() { destListModel.clear(); }
public void clearSourceListModel() { sourceListModel.clear(); }