APIdia Launch Partner
Top Description Interfaces Annotations Classes
module javafx.base

Package javafx.beans


The package javafx.beans contains the interfaces that define the most generic form of observability. All other classes in the JavaFX library, that are observable, extend the javafx.beans.Observable interface.

An implementation of Observable allows to attach an javafx.beans.InvalidationListener. The contentBinding gets notified every time the Observable may have changed. Typical implementations of Observable are all properties, all bindings, javafx.collections.ObservableList, and javafx.collections.ObservableMap.

An InvalidationListener will get no further information, e.g. it will not get the old and the new value of a property. If you need more information consider using a javafx.beans.value.ChangeListener for properties and bindings, javafx.collections.ListChangeListener for ObservableLists or javafx.collections.MapChangeListener for ObservableMap instead.

Interface Summary

Modifier and TypeInterface and Description
public interface
InvalidationListener

An InvalidationListener is notified whenever an Observable becomes invalid.

public interface
Observable

An Observable is an entity that wraps content and allows to observe the content for invalidations.

public interface
WeakListener

WeakListener is the super interface of all weak listener implementations in the JavaFX API.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
DefaultProperty

Specifies a property to which child elements will be added or set when an explicit property is not given.

public @interface
NamedArg

Annotation that provides information about argument's name.

Class Summary

Modifier and TypeClass and Description
public class
WeakInvalidationListener

A WeakInvalidationListener can be used if an Observable should only maintain a weak reference to the listener.