JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::ChangeListener Class Referenceabstract

Receives change event callbacks that are sent out by a ChangeBroadcaster. More...

#include <juce_ChangeListener.h>

Inheritance diagram for juce::ChangeListener:

Public Member Functions

virtual ~ChangeListener ()
 Destructor. More...
 
virtual void changeListenerCallback (ChangeBroadcaster *source)=0
 Your subclass should implement this method to receive the callback. More...
 

Detailed Description

Receives change event callbacks that are sent out by a ChangeBroadcaster.

A ChangeBroadcaster keeps a set of listeners to which it broadcasts a message when the ChangeBroadcaster::sendChangeMessage() method is called. A subclass of ChangeListener is used to receive these callbacks.

Note that the major difference between an ActionListener and a ChangeListener is that for a ChangeListener, multiple changes will be coalesced into fewer callbacks, but ActionListeners perform one callback for every event posted.

See also
ChangeBroadcaster, ActionListener

{Events}

Constructor & Destructor Documentation

◆ ~ChangeListener()

virtual juce::ChangeListener::~ChangeListener ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ changeListenerCallback()

virtual void juce::ChangeListener::changeListenerCallback ( ChangeBroadcaster source)
pure virtual

Your subclass should implement this method to receive the callback.

Parameters
sourcethe ChangeBroadcaster that triggered the callback.

Implemented in juce::PluginListComponent, juce::AudioDeviceSelectorComponent, and juce::FileListComponent.


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