java.lang.Object
omix.util.ValueChangeAdapter
omix.util.SynchronousItemPropertyChangeListener
- All Implemented Interfaces:
ValueChangeListener
,AnnotationChangeListener
public final class SynchronousItemPropertyChangeListener extends ValueChangeAdapter implements AnnotationChangeListener
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 SynchronousItemPropertyChangeListener(Supplier<QThread> threadSupplier, PropertyChangeListener propertyChangeListener)
-
Method Summary
Modifier and Type Method Description void
annotationAdded(Annotation annotation)
void
annotationAdded(Object object, String property, Annotation annotation)
void
annotationRemoved(Annotation annotation)
void
annotationRemoved(Object object, String property, Annotation annotation)
void
valueChanged(Object newValue)
This method is called whenever the value of a field changes.void
valueChanged(Object object, String property, Object oldValue, Object newValue)
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
-
SynchronousItemPropertyChangeListener
public SynchronousItemPropertyChangeListener(Supplier<QThread> threadSupplier, PropertyChangeListener propertyChangeListener)
-
-
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:
newValue
- the new value of the field- Throws:
RuntimeException
- See Also:
ValueChangeListener.valueChanged(java.lang.Object)
-
valueChanged
public final void valueChanged(Object object, String property, Object oldValue, Object newValue) throws RuntimeExceptionDescription copied from interface:ValueChangeListener
This method is called whenever the value of a field changes.- Specified by:
valueChanged
in interfaceValueChangeListener
- Throws:
RuntimeException
-
annotationAdded
- Specified by:
annotationAdded
in interfaceAnnotationChangeListener
-
annotationRemoved
- Specified by:
annotationRemoved
in interfaceAnnotationChangeListener
-
annotationAdded
public void annotationAdded(Object object, String property, Annotation annotation) throws RuntimeException- Specified by:
annotationAdded
in interfaceAnnotationChangeListener
- Throws:
RuntimeException
-
annotationRemoved
public void annotationRemoved(Object object, String property, Annotation annotation) throws RuntimeException- Specified by:
annotationRemoved
in interfaceAnnotationChangeListener
- Throws:
RuntimeException
-