CHAPTER 3

image

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.