Medical Imaging Interaction Toolkit  2016.11.0
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 46 of file berryIPropertyChangeListener.h.

Constructor & Destructor Documentation

berry::IPropertyChangeListener::~IPropertyChangeListener ( )
virtual

Definition at line 24 of file berryIPropertyChangeListener.cpp.

Member Function Documentation

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 >.

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().

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

Reimplemented in berry::PropertyChangeIntAdapter< R >.

Definition at line 77 of file berryIPropertyChangeListener.h.


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