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