java.lang.Object
omix.util.ValueChangeAdapter
omix.util.SynchronousValueChangeListener
- All Implemented Interfaces:
ValueChangeListener
public final class SynchronousValueChangeListener extends ValueChangeAdapter
This class implements the
ValueChangeListener
in thread-safe manner.- Since:
- Omix 1.8.8
- Author:
- Dr. Peter Droste, Omix Visualization
- See Also:
ThreadAffineUtility.tryInvokeAndWait(io.qt.core.QObject, omix.util.ui.ThrowingRunnable)
-
Constructor Summary
Constructors Constructor Description SynchronousValueChangeListener(Supplier<QThread> threadSupplier, Consumer<Object> slot)
-
Method Summary
Modifier and Type Method Description void
valueChanged(Object value)
This method is called whenever the value of a field changes.Methods inherited from class omix.util.ValueChangeAdapter
addSender, blockListening, disconnectFromAllSenders, isConnected, listeningBlocked, removeSender
-
Constructor Details
-
Method Details
-
valueChanged
Description copied from class:ValueChangeAdapter
This method is called whenever the value of a field changes.- Specified by:
valueChanged
in interfaceValueChangeListener
- Specified by:
valueChanged
in classValueChangeAdapter
- Parameters:
value
- the new value of the field- Throws:
RuntimeException
- See Also:
ValueChangeListener.valueChanged(java.lang.Object)
-