java.lang.Object
com.inductiveautomation.ignition.designer.mvvm.binders.swing.util.ReorderItemSupport<T>
All Implemented Interfaces:
Disposable

public class ReorderItemSupport<T> extends Object implements Disposable
Algorithm for reordering items in a list. This is typically used with up and down buttons.
  • Constructor Details

    • ReorderItemSupport

      public ReorderItemSupport(PropertyPublisher<List<T>> items, PropertyPublisherReadOnly<T> selection, Consumer<T> selectionSetter)
      When instantiated will determine the button states for the Up/Down buttons.
      Parameters:
      items - The list for which items in it will be reordered
      selection - The item for which the reorder will be performed on (if any). It can be null to specify no selection.
  • Method Details