Seeking FXML examples with the "onChange" attribute defined for ObservableList, ObservableMap, ObservableSet ...

Rony G. Flatscher Rony.Flatscher at wu.ac.at
Wed Aug 5 14:39:57 UTC 2020


Maybe asking the same with a different question: what JavaFX classes can have an "onChange"
attribute in a FXML file defined, such that one can look into it and explore that particular feature?

As there are three change listener types (ListChangeListener.Change, MapChaneListener.Change,
SetChangeListener.Change) for that purpose, it would be helpful to be pointed at three respective
JavaFX classes.

---rony

On 28.07.2020 13:18, Rony G. Flatscher wrote:
> Hi Nir,
>
>     On 27.07.2020 22:39, Nir Lisker wrote:
>     > Hi Rony,
>     >
>     > I think that this PR is not the place for this question since it only fixes a typo there.
>
> sorry, my bad, not realizing that the reply will be taken as part of the PR! This time with a proper
> new e-mail.
>
> ---
>
> In <https://github.com/openjdk/jfx/pull/274> there are corrections for the text relating to
> documenting the "onChange" attribute for "ObservableList" supplying a "ListChangeListener.Change"
> [1], "ObservableMap" supplying a "MapChangeListener.Change" [2] or "ObservableSet" supplying a
> "SetChangeListener.Change" [3].
>
> Does anyone have FXML examples for defining the "onChange" attribute for any of the three
> Observable{List|Map|Set}?
>
> ---rony
>
> [1] "ListChangeListener.Change":
> <https://docs.oracle.com/javase/8/javafx/api/javafx/collections/ListChangeListener.Change.html>
> [2] "MapChangeListener.Change": 
> <https://docs.oracle.com/javase/8/javafx/api/javafx/collections/MapChangeListener.Change.html>
> [3] "SetChangeListener.Change":
> <https://docs.oracle.com/javase/8/javafx/api/javafx/collections/SetChangeListener.Change.html>



More information about the openjfx-dev mailing list