Class ReorderItemSupport<T>
java.lang.Object
com.inductiveautomation.ignition.designer.mvvm.binders.swing.util.ReorderItemSupport<T>
- All Implemented Interfaces:
Disposable
Algorithm for reordering items in a list. This is typically used with up and down buttons.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionReorderItemSupport(PropertyPublisher<List<T>> items, PropertyPublisherReadOnly<T> selection, Consumer<T> selectionSetter) When instantiated will determine the button states for the Up/Down buttons. -
Method Summary
-
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 reorderedselection- The item for which the reorder will be performed on (if any). It can be null to specify no selection.
-
-
Method Details
-
reinitialize
public void reinitialize() -
moveSelectedUp
public void moveSelectedUp() -
moveSelectedDown
public void moveSelectedDown() -
upEnabled
-
downEnabled
-
createBindingSource
-
dispose
public void dispose()- Specified by:
disposein interfaceDisposable
-