Jetpack/Collections: Difference between revisions

Jump to navigation Jump to search
m
Line 28: Line 28:
** Listbox, tree node childred etc. all could accept such lists
** Listbox, tree node childred etc. all could accept such lists
** E.g. listbox.showList(allItems)
** E.g. listbox.showList(allItems)
** The UI then updates automatically based on changes of the underlying list, and the programmer doesn't have to think about it.
** Dynamically adapting UI without extra work: Thanks to observers, the UI updates automatically based on changes of the underlying list.
** The API of the UI then wouldn't need "add/remoteItem" functions.
** The API of the UI then wouldn't need "add/remoteItem" functions itself.
* Other classes
* Other classes
** Pretty much anything that takes a list in Jetpack could be using this API, at least optionally.
** Pretty much anything that takes a list in Jetpack could be using this API, at least optionally.
Confirmed users
596

edits

Navigation menu