View Javadoc
1   /*******************************************************************************
2    * Copyhacked (H) 2012-2025.
3    * This program and the accompanying materials
4    * are made available under no term at all, use it like
5    * you want, but share and discuss it
6    * every time possible with every body.
7    * 
8    * Contributors:
9    *      ron190 at ymail dot com - initial implementation
10   ******************************************************************************/
11  package com.jsql.view.swing.list;
12  
13  import java.util.List;
14  
15  /**
16   * A list supporting drag and drop with copy/paste object functionality.
17   */
18  public class DnDListScan extends DnDList {
19      
20      public DnDListScan(List<ItemList> newList) {
21          super(newList);
22      }
23  
24      @Override
25      public void addItem(int endPosition, String line) {
26          this.listModel.add(endPosition, new ItemListScan(new BeanInjection(line.replace("\\", "/"))));
27      }
28  }