Class ObservableCollections
java.lang.Object
org.jdesktop.observablecollections.ObservableCollections
ObservableCollections provides factory methods for creating
observable lists and maps.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classObservableListHelperis created byobservableListHelper, and useful when changes to individual elements of the list can be tracked. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> ObservableList<E>observableList(List<E> list) Creates and returns anObservableListwrapping the suppliedList.static <E> ObservableCollections.ObservableListHelper<E>observableListHelper(List<E> list) Creates and returns anObservableListHelperwrapping the suppliedList.static <K,V> ObservableMap<K, V> observableMap(Map<K, V> map) Creates and returns anObservableMapwrapping the suppliedMap.
-
Constructor Details
-
ObservableCollections
public ObservableCollections()
-
-
Method Details
-
observableMap
Creates and returns anObservableMapwrapping the suppliedMap.- Parameters:
map- theMapto wrap- Returns:
- an
ObservableMap - Throws:
IllegalArgumentException- ifmapisnull
-
observableList
Creates and returns anObservableListwrapping the suppliedList.- Parameters:
list- theListto wrap- Returns:
- an
ObservableList - Throws:
IllegalArgumentException- iflistisnull
-
observableListHelper
Creates and returns anObservableListHelperwrapping the suppliedList. If you can track changes to the underlying list, use this method instead ofobservableList().- Parameters:
list- theListto wrap- Returns:
- an
ObservableList - Throws:
IllegalArgumentException- iflistisnull- See Also:
-