Control's propertyMap more convenient.See: Description
| Interface | Description |
|---|---|
| ControlPropertyListenerHandle |
This is a
handle on a ControlPropertyListener, which can be used to ControlPropertyListenerHandle.attach()
and ControlPropertyListenerHandle.detach() it. |
| Class | Description |
|---|---|
| ControlProperties |
Gives access to a
ControlPropertyListenerBuilder. |
| ControlPropertyListenerBuilder<T> |
A builder for a
ControlPropertyListener. |
Control's propertyMap more convenient.
As such its main use will be to creators of controls.
In order to use the property map, a control has to create a listener which does these things:
This package provides usability functions to create such a listener in a concise and readable way (this code would be inside a control):
ControlProperties.on(getProperties())
.forKey("SomeKey")
.processValue(valueString -> System.out.println(valueString))
.buildAndAttach();
It returns an instance of ControlPropertyListenerHandle which can be used to easily detach and reattach the listener.This documentation is licensed under CC-BY 4.0, attributed to Nicolai Parlog from CodeFX.