We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f10d04d commit 9814080Copy full SHA for 9814080
src/main/java/org/codefx/libfx/control/properties/ControlPropertyListenerBuilder.java
@@ -18,6 +18,15 @@
18
* it to check the type of the value before casting it to the type accepted by the value processor. If those types do
19
* not match, this prevents {@link ClassCastException} (which would otherwise be caught and silently ignored). If that
20
* case occurs frequently, specifying the type to allow the check will improve performance considerably.
21
+ * <p>
22
+ * A typical use looks like this:
23
+ *
24
+ * <pre>
25
+ * ControlProperties.<Boolean> on(control.getProperties())
26
+ * .forKey("visible")
27
+ * .processValue(this::setVisibility)
28
+ * .buildDetached();
29
+ * </pre>
30
*
31
* @param <T>
32
* the type of values which the listener processes
0 commit comments