Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryIPropertyChangeListener.h>
Classes | |
struct | Events |
Public Member Functions | |
virtual | ~IPropertyChangeListener () |
virtual void | PropertyChange (const PropertyChangeEvent::Pointer &event) |
virtual void | PropertyChange (const Object::Pointer &, int) |
Listener for property changes.
Usage:
IPropertyChangeListener listener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { ... // code to deal with occurrence of property change } }; emitter.addPropertyChangeListener(listener); ... emitter.removePropertyChangeListener(listener);
Definition at line 46 of file berryIPropertyChangeListener.h.
|
virtual |
Definition at line 24 of file berryIPropertyChangeListener.cpp.
|
virtual |
Notification that a property has changed.
This method gets called when the observed object fires a property change event.
event | the property change event object describing which property changed and how |
Reimplemented in berry::PropertyChangeAdapter< R >.
Definition at line 46 of file berryIPropertyChangeListener.cpp.
References berry::SmartPointer< TObjectType >::Cast(), and berry::IWorkbenchPartConstants::INTEGER_PROPERTY.
Referenced by berry::IPropertyChangeListener::Events::AddListener(), and berry::IPropertyChangeListener::Events::RemoveListener().
|
inlinevirtual |
Reimplemented in berry::PropertyChangeIntAdapter< R >.
Definition at line 77 of file berryIPropertyChangeListener.h.