Class ObservableListMapImpl
java.lang.Object
cz.masci.commons.springfx.service.impl.ObservableListMapImpl
- All Implemented Interfaces:
ObservableListMap
Implicit implementation of
ObservableListMap using FXCollections.- Author:
- Daniel MaĊĦek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Modifiable>
voidAdd or update item in the list identified by key param.<T extends Modifiable>
voidadd(T item) Add or update item in the list identified by item class.<T extends Modifiable>
voidaddListener(Class<T> key, javafx.collections.ListChangeListener<T> changeListener) Add list change listener on list identified by clazz param.voidaddListener(String key, javafx.collections.ListChangeListener<? extends Modifiable> changeListener) Add list change listener on list identified by key param.<T extends Modifiable>
booleanTest the list identified by key param if contains the item.<T extends Modifiable>
booleancontains(T item) Test the list identified by item class if contains the item.<T extends Modifiable>
List<T>Get all items from list identified by clazz param.<T extends Modifiable>
List<T>Get all items from list identified by key param.<T extends Modifiable>
voidRemove item from list identified by key param.<T extends Modifiable>
voidremove(T item) Remove item from list identified by item.<T extends Modifiable>
voidremoveListener(Class<T> key, javafx.collections.ListChangeListener<T> changeListener) Remove list change listener from list identified by clazz param.voidremoveListener(String key, javafx.collections.ListChangeListener<? extends Modifiable> changeListener) Remove list change listener from list identified by key param.
-
Constructor Details
-
ObservableListMapImpl
public ObservableListMapImpl()
-
-
Method Details
-
add
Description copied from interface:ObservableListMapAdd or update item in the list identified by item class.- Specified by:
addin interfaceObservableListMap- Type Parameters:
T- Item type- Parameters:
item- Item to add
-
add
Description copied from interface:ObservableListMapAdd or update item in the list identified by key param.- Specified by:
addin interfaceObservableListMap- Type Parameters:
T- Item type- Parameters:
key- Identifier of list where to add itemitem- Item to add
-
remove
Description copied from interface:ObservableListMapRemove item from list identified by item.- Specified by:
removein interfaceObservableListMap- Type Parameters:
T- Item type- Parameters:
item- Item to remove
-
remove
Description copied from interface:ObservableListMapRemove item from list identified by key param.- Specified by:
removein interfaceObservableListMap- Type Parameters:
T- Item type- Parameters:
key- List identifieritem- Item to remove
-
contains
Description copied from interface:ObservableListMapTest the list identified by item class if contains the item.- Specified by:
containsin interfaceObservableListMap- Type Parameters:
T- Item type- Parameters:
item- Item to test- Returns:
TRUEif the list contains the item
-
contains
Description copied from interface:ObservableListMapTest the list identified by key param if contains the item.- Specified by:
containsin interfaceObservableListMap- Type Parameters:
T- Item type- Parameters:
key- List identifieritem- Item to test- Returns:
TRUEif the list contains the item
-
getAll
Description copied from interface:ObservableListMapGet all items from list identified by clazz param.- Specified by:
getAllin interfaceObservableListMap- Type Parameters:
T- Item type- Parameters:
key- List identifier- Returns:
- All items from list
-
getAll
Description copied from interface:ObservableListMapGet all items from list identified by key param.- Specified by:
getAllin interfaceObservableListMap- Type Parameters:
T- Item type- Parameters:
key- List identifier- Returns:
- Item list
-
addListener
public <T extends Modifiable> void addListener(Class<T> key, javafx.collections.ListChangeListener<T> changeListener) Description copied from interface:ObservableListMapAdd list change listener on list identified by clazz param.- Specified by:
addListenerin interfaceObservableListMap- Type Parameters:
T- Item type- Parameters:
key- List identifierchangeListener-ListChangeListener
-
addListener
public void addListener(String key, javafx.collections.ListChangeListener<? extends Modifiable> changeListener) Description copied from interface:ObservableListMapAdd list change listener on list identified by key param.- Specified by:
addListenerin interfaceObservableListMap- Parameters:
key- List identifierchangeListener-ListChangeListener
-
removeListener
public <T extends Modifiable> void removeListener(Class<T> key, javafx.collections.ListChangeListener<T> changeListener) Description copied from interface:ObservableListMapRemove list change listener from list identified by clazz param.- Specified by:
removeListenerin interfaceObservableListMap- Type Parameters:
T- Item type- Parameters:
key- List identifierchangeListener-ListChangeListener
-
removeListener
public void removeListener(String key, javafx.collections.ListChangeListener<? extends Modifiable> changeListener) Description copied from interface:ObservableListMapRemove list change listener from list identified by key param.- Specified by:
removeListenerin interfaceObservableListMap- Parameters:
key- List identifierchangeListener-ListChangeListener
-