Class SelectableListFactory
java.lang.Object
de.bernd_michaely.common.desktop.fx.collections.selection.SelectableListFactory
Class with factory methods for creation of instances of SelectableLists and
related types.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> ListSelectionHandler<E>
listSelectionHandler
(SelectableList<E> sourceList) Returns a SelectableListSelectionHandler implementation.static <E> ListSelectionHandler<E>
listSelectionHandler
(SelectableList<E> sourceList, @Nullable TransformationList<E, E> transformationList) Returns a SelectableListSelectionHandler implementation.static <E> SelectableList<E>
Returns a SelectableList implementation.static <E> SelectableList<E>
selectableList
(Collection<? extends E> src) Returns a SelectableList implementation.
-
Method Details
-
selectableList
Returns a SelectableList implementation.- Type Parameters:
E
- the list element type- Returns:
- a SelectableList instance
-
selectableList
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
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 ontransformationList
- a transformation list (or a chain thereof) to be applied to the source list- Returns:
- a ListSelectionHandler instance
- Throws:
NullPointerException
- if sourceList is null
-