Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berry::IPropertyChangeListener Struct Reference

#include <berryIPropertyChangeListener.h>

Inheritance diagram for berry::IPropertyChangeListener:

Classes

struct  Events
 

Public Member Functions

virtual ~IPropertyChangeListener ()
 
virtual void PropertyChange (const PropertyChangeEvent::Pointer &event)
 
virtual void PropertyChange (const Object::Pointer &, int)
 

Detailed Description

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 42 of file berryIPropertyChangeListener.h.

Constructor & Destructor Documentation

◆ ~IPropertyChangeListener()

virtual berry::IPropertyChangeListener::~IPropertyChangeListener ( )
virtual

Member Function Documentation

◆ PropertyChange() [1/2]

virtual void berry::IPropertyChangeListener::PropertyChange ( const Object::Pointer ,
int   
)
inlinevirtual

Reimplemented in berry::PropertyChangeIntAdapter< R >.

Definition at line 73 of file berryIPropertyChangeListener.h.

◆ PropertyChange() [2/2]

virtual void berry::IPropertyChangeListener::PropertyChange ( const PropertyChangeEvent::Pointer event)
virtual

Notification that a property has changed.

This method gets called when the observed object fires a property change event.

Parameters
eventthe property change event object describing which property changed and how

Reimplemented in berry::PropertyChangeAdapter< R >.


The documentation for this struct was generated from the following file: