Class DnDList

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable
Direct Known Subclasses:
DnDListScan

public class DnDList extends JList<ItemList>
A list supporting drag and drop.
See Also:
  • Field Details

  • Constructor Details

    • DnDList

      public DnDList(List<ItemList> newList)
      Create a JList decorated with drag/drop features.
      Parameters:
      newList - List to decorate
  • Method Details

    • removeSelectedItem

      public void removeSelectedItem()
      Delete selected items from the list.
    • dropPasteFile

      public void dropPasteFile(List<File> filesToImport, int position)
      Load a file into the list (drag/drop or copy/paste).
      Parameters:
      filesToImport -
      position -
    • restore

      public void restore()
    • addItem

      public void addItem(int endPosition, String line)