Medical Imaging Interaction Toolkit  2021.10.99-888ff917
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 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 >.

Referenced by berry::PropertyChangeAdapter< R >::PropertyChangeAdapter(), and berry::PropertyChangeIntAdapter< R >::PropertyChangeIntAdapter().

◆ PropertyChange() [2/2]

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

Reimplemented in berry::PropertyChangeIntAdapter< R >.

Definition at line 73 of file berryIPropertyChangeListener.h.


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