Class ListSelectionView<T>

  • Type Parameters:
    T - the type of the list items
    All Implemented Interfaces:
    Styleable, EventTarget, Skinnable

    public class ListSelectionView<T>
    extends Control
    A control used to perform a multi-selection via the help of two list views. Items can be moved from one list (source) to the other (target). This can be done by either double clicking on the list items or by using one of the "move" buttons between the two lists. Buttons can be added or removed by altering the list of actions. Each list can be decorated with a header and a footer node. The default header nodes are simply two labels ("Available", "Selected").


    Screenshot of ListSelectionView

    Code Example

     ListSelectionView<String> view = new ListSelectionView<>();
     view.getSourceItems().add("One", "Two", "Three");
     view.getTargetItems().add("Four", "Five");