JUCE  v5.1.1-3-g1a0b28c73
JUCE API
Label::Listener Class Referenceabstract

A class for receiving events from a Label. More...

#include <juce_Label.h>

Inheritance diagram for Label::Listener:

Public Member Functions

virtual ~Listener ()
 Destructor. More...
 
virtual void editorHidden (Label *, TextEditor &)
 Called when a Label is about to delete its TextEditor and exit editing mode. More...
 
virtual void editorShown (Label *, TextEditor &)
 Called when a Label goes into editing mode and displays a TextEditor. More...
 
virtual void labelTextChanged (Label *labelThatHasChanged)=0
 Called when a Label's text has changed. More...
 

Detailed Description

A class for receiving events from a Label.

You can register a Label::Listener with a Label using the Label::addListener() method, and it will be called when the text of the label changes, either because of a call to Label::setText() or by the user editing the text (if the label is editable).

See also
Label::addListener, Label::removeListener

Constructor & Destructor Documentation

◆ ~Listener()

virtual Label::Listener::~Listener ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ editorHidden()

virtual void Label::Listener::editorHidden ( Label ,
TextEditor  
)
inlinevirtual

Called when a Label is about to delete its TextEditor and exit editing mode.

◆ editorShown()

virtual void Label::Listener::editorShown ( Label ,
TextEditor  
)
inlinevirtual

Called when a Label goes into editing mode and displays a TextEditor.

◆ labelTextChanged()

virtual void Label::Listener::labelTextChanged ( Label labelThatHasChanged)
pure virtual

Called when a Label's text has changed.

Implemented in ComboBox.


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