Show a Message only when a view binds it or asks for a popup.

The library stays quiet until a Direct binding reads latestMessage or the developer turns on a dialog. An in-place binding failure must not pop again.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-30 17:55:12 +01:00
co-authored by Cursor
parent f8c65e444e
commit 4bced5f9bb
6 changed files with 348 additions and 4 deletions
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.VBox?>
<?import de.neitzel.fx.view.BindingList?>
<?import de.neitzel.fx.view.DirectBinding?>
<VBox xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml">
<fx:define>
<BindingList>
<DirectBinding control="messageLabel" property="text" path="latestMessage" direction="view"/>
</BindingList>
</fx:define>
<Label fx:id="messageLabel" id="messageLabel"/>
</VBox>