java.lang.Object
de.bernd_michaely.common.desktop.fx.collections.selection.SelectableListFactory

public class SelectableListFactory extends Object
Class with factory methods for creation of instances of SelectableLists and related types.
  • Method Details

    • selectableList

      public static <E> SelectableList<E> selectableList()
      Returns a SelectableList implementation.
      Type Parameters:
      E - the list element type
      Returns:
      a SelectableList instance
    • selectableList

      public static <E> SelectableList<E> selectableList(Collection<? extends E> src)
      Returns a SelectableList implementation.
      Type Parameters:
      E - the list element type
      Parameters:
      src - a given collection the list is initially filled with
      Returns:
      a SelectableList instance
      Throws:
      NullPointerException - if src is null
    • listSelectionHandler

      public static <E> ListSelectionHandler<E> listSelectionHandler(SelectableList<E> sourceList)
      Returns a SelectableListSelectionHandler implementation.
      Type Parameters:
      E - the list element type
      Parameters:
      sourceList - a given list the returned instance is based on
      Returns:
      a SelectableListSelectionHandler instance
      Throws:
      NullPointerException - if sourceList is null
    • listSelectionHandler

      public static <E> ListSelectionHandler<E> listSelectionHandler(SelectableList<E> sourceList, @Nullable TransformationList<E,E> transformationList)
      Returns a SelectableListSelectionHandler implementation.
      Type Parameters:
      E - the list element type
      Parameters:
      sourceList - a given list the returned instance is based on
      transformationList - a transformation list (or a chain thereof) to be applied to the source list
      Returns:
      a ListSelectionHandler instance
      Throws:
      NullPointerException - if sourceList is null