Observable Collections

In this chapter, you will learn:

  • What observable collections in JavaFX are
  • How to observe observable collections for invalidations and changes
  • How to use observable collections as properties

What Are Observable Collections?

Observable collections in JavaFX are extensions to collections in Java. The collections framework in Java has the List, Set, and Map interfaces. JavaFX adds the following three types of observable collections that may be observed for changes in their contents:

  • An observable list
  • An observable set
  • An observable map

JavaFX supports these types of collections through three new interfaces:

  • ObservableList ...

Get Learn JavaFX 8: Building User Experience and Interfaces with Java 8 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.