예제 #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();
 }
예제 #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();
 }
예제 #3
0
 public Iterator destinationIterator() {
   return destListModel.iterator();
 }
예제 #4
0
 public Iterator sourceIterator() {
   return sourceListModel.iterator();
 }
예제 #5
0
 private void fillListModel(SortedListModel1 model, Object newValues[]) {
   model.addAll(newValues);
 }
예제 #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));
   }
 }
예제 #7
0
 public void clearDestinationListModel() {
   destListModel.clear();
 }
예제 #8
0
 public void clearSourceListModel() {
   sourceListModel.clear();
 }