public static <E> void bindContent (List<E> list1, ObservableList<? extends E> list2)

Generates a content binding between an javafx.collections.ObservableList and a java.util.List.

A content binding ensures that the List contains the same elements as the ObservableList. If the content of the ObservableList changes, the List will be updated automatically.

Once a List is bound to an ObservableList, the List must not be changed directly anymore. Doing so would lead to unexpected results.

A content-binding can be removed with unbindContent(Object, Object).

Parameters:
<E>     the type of the List elements
list1     the List
list2     the ObservableList

Since:  JavaFX 2.1