Class SourceAndIndices

java.lang.Object
com.illumon.iris.gui.widget.dragndrop.SourceAndIndices

public class SourceAndIndices extends Object
The data class for Drag N' Drop within components in this panel. The included indices and values are parallel arrays.
  • Field Details

    • source

      public final Component source
      The component that provided the data
    • indices

      public final int[] indices
      The indices of the provided values in the source
    • values

      public final Object[] values
      The values provided. Note that this is parallel to 'indices'
    • requireCleanup

      public boolean requireCleanup
      An indicator if the source must clean up after itself
  • Constructor Details

    • SourceAndIndices

      public SourceAndIndices(Component source, int[] indices, Object[] values)
      Create a SourceAndIndices for a Drag and Drop action with a RearrangingTransferHandler
      Parameters:
      source - the component the data comes from
      indices - the indices within the components model of the data
      values - the values being Drag and Dropped