Module tvbrowser
Package util.ui

Interface ListDropAction<T>

  • All Known Implementing Classes:
    OrderChooser, SortableItemList

    public interface ListDropAction<T>
    A interface for the drop action of JLists.
    Author:
    René Mach
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void drop​(javax.swing.JList<T> source, javax.swing.JList<T> target, int row, boolean move)
      The method that is called by the drop event.
    • Method Detail

      • drop

        void drop​(javax.swing.JList<T> source,
                  javax.swing.JList<T> target,
                  int row,
                  boolean move)
        The method that is called by the drop event.
        Parameters:
        source - The source JList.
        target - The target JList.
        row - The number of the row to move the entries to.
        move - Only move one entry from the source to the target list.