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

Receives events from a TableHeaderComponent when columns are resized, moved, etc. More...

#include <juce_TableHeaderComponent.h>

Inheritance diagram for TableHeaderComponent::Listener:

Public Member Functions

 Listener ()
 
virtual ~Listener ()
 Destructor. More...
 
virtual void tableColumnDraggingChanged (TableHeaderComponent *tableHeader, int columnIdNowBeingDragged)
 This is called when the user begins or ends dragging one of the columns around. More...
 
virtual void tableColumnsChanged (TableHeaderComponent *tableHeader)=0
 This is called when some of the table's columns are added, removed, hidden, or rearranged. More...
 
virtual void tableColumnsResized (TableHeaderComponent *tableHeader)=0
 This is called when one or more of the table's columns are resized. More...
 
virtual void tableSortOrderChanged (TableHeaderComponent *tableHeader)=0
 This is called when the column by which the table should be sorted is changed. More...
 

Detailed Description

Receives events from a TableHeaderComponent when columns are resized, moved, etc.

You can register one of these objects for table events using TableHeaderComponent::addListener() and TableHeaderComponent::removeListener().

See also
TableHeaderComponent

Constructor & Destructor Documentation

◆ Listener()

TableHeaderComponent::Listener::Listener ( )
inline

◆ ~Listener()

virtual TableHeaderComponent::Listener::~Listener ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ tableColumnDraggingChanged()

virtual void TableHeaderComponent::Listener::tableColumnDraggingChanged ( TableHeaderComponent tableHeader,
int  columnIdNowBeingDragged 
)
virtual

This is called when the user begins or ends dragging one of the columns around.

When the user starts dragging a column, this is called with the ID of that column. When they finish dragging, it is called again with 0 as the ID.

Reimplemented in TableListBox.

Referenced by TableListBox::isAutoSizeMenuOptionShown().

◆ tableColumnsChanged()

virtual void TableHeaderComponent::Listener::tableColumnsChanged ( TableHeaderComponent tableHeader)
pure virtual

This is called when some of the table's columns are added, removed, hidden, or rearranged.

Implemented in TableListBox.

Referenced by TableListBox::isAutoSizeMenuOptionShown().

◆ tableColumnsResized()

virtual void TableHeaderComponent::Listener::tableColumnsResized ( TableHeaderComponent tableHeader)
pure virtual

This is called when one or more of the table's columns are resized.

Implemented in TableListBox.

Referenced by TableListBox::isAutoSizeMenuOptionShown().

◆ tableSortOrderChanged()

virtual void TableHeaderComponent::Listener::tableSortOrderChanged ( TableHeaderComponent tableHeader)
pure virtual

This is called when the column by which the table should be sorted is changed.

Implemented in TableListBox.

Referenced by TableListBox::isAutoSizeMenuOptionShown().


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