JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::AccessibilityTableInterface Class Referenceabstract

An abstract interface which represents a UI element that supports a table interface. More...

#include <juce_AccessibilityTableInterface.h>

Classes

struct  Span
 A simple span of elements. More...
 

Public Member Functions

virtual ~AccessibilityTableInterface ()=default
 Destructor.
 
virtual const AccessibilityHandlergetCellHandler (int row, int column) const =0
 Returns the AccessibilityHandler for one of the cells in the table, or nullptr if there is no cell at the specified position.
 
virtual Optional< SpangetColumnSpan (const AccessibilityHandler &) const =0
 Given the handler of one of the cells in the table, returns the columns covered by that cell, or null if the cell does not exist in the table.
 
virtual const AccessibilityHandlergetHeaderHandler () const =0
 Returns the AccessibilityHandler for the header, or nullptr if there is no header.
 
virtual int getNumColumns () const =0
 Returns the total number of columns in the table.
 
virtual int getNumRows () const =0
 Returns the total number of rows in the table.
 
virtual const AccessibilityHandlergetRowHandler (int row) const =0
 Returns the AccessibilityHandler for a row in the table, or nullptr if there is no row at this index.
 
virtual Optional< SpangetRowSpan (const AccessibilityHandler &) const =0
 Given the handler of one of the cells in the table, returns the rows covered by that cell, or null if the cell does not exist in the table.
 
virtual void showCell (const AccessibilityHandler &) const =0
 Attempts to scroll the table (if necessary) so that the cell with the given handler is visible.
 

Detailed Description

An abstract interface which represents a UI element that supports a table interface.

Examples of UI elements which typically support a table interface are lists, tables, and trees.

@tags{Accessibility}

Constructor & Destructor Documentation

◆ ~AccessibilityTableInterface()

virtual juce::AccessibilityTableInterface::~AccessibilityTableInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getCellHandler()

virtual const AccessibilityHandler * juce::AccessibilityTableInterface::getCellHandler ( int  row,
int  column 
) const
pure virtual

Returns the AccessibilityHandler for one of the cells in the table, or nullptr if there is no cell at the specified position.

Referenced by juce::UIAGridProvider::GetItem().

◆ getColumnSpan()

virtual Optional< Span > juce::AccessibilityTableInterface::getColumnSpan ( const AccessibilityHandler ) const
pure virtual

Given the handler of one of the cells in the table, returns the columns covered by that cell, or null if the cell does not exist in the table.

This function replaces the getColumnIndex and getColumnSpan functions from AccessibilityCellInterface. Most of the time, it's easier for the table itself to keep track of cell locations, than to delegate to the individual cells.

Referenced by juce::UIAGridItemProvider::get_Column(), and juce::UIAGridItemProvider::get_ColumnSpan().

◆ getHeaderHandler()

virtual const AccessibilityHandler * juce::AccessibilityTableInterface::getHeaderHandler ( ) const
pure virtual

Returns the AccessibilityHandler for the header, or nullptr if there is no header.

If you supply a header, it must have exactly the same number of children as there are columns in the table.

Referenced by juce::UIAGridProvider::GetColumnHeaders().

◆ getNumColumns()

virtual int juce::AccessibilityTableInterface::getNumColumns ( ) const
pure virtual

Returns the total number of columns in the table.

Referenced by juce::UIAGridProvider::get_ColumnCount(), and juce::UIAGridProvider::GetItem().

◆ getNumRows()

virtual int juce::AccessibilityTableInterface::getNumRows ( ) const
pure virtual

Returns the total number of rows in the table.

Referenced by juce::UIAGridProvider::get_RowCount(), and juce::UIAGridProvider::GetItem().

◆ getRowHandler()

virtual const AccessibilityHandler * juce::AccessibilityTableInterface::getRowHandler ( int  row) const
pure virtual

Returns the AccessibilityHandler for a row in the table, or nullptr if there is no row at this index.

The row component should have a child component for each column in the table.

Referenced by juce::UIAGridProvider::GetItem().

◆ getRowSpan()

virtual Optional< Span > juce::AccessibilityTableInterface::getRowSpan ( const AccessibilityHandler ) const
pure virtual

Given the handler of one of the cells in the table, returns the rows covered by that cell, or null if the cell does not exist in the table.

This function replaces the getRowIndex and getRowSpan functions from AccessibilityCellInterface. Most of the time, it's easier for the table itself to keep track of cell locations, than to delegate to the individual cells.

Referenced by juce::UIAGridItemProvider::get_Row(), and juce::UIAGridItemProvider::get_RowSpan().

◆ showCell()

virtual void juce::AccessibilityTableInterface::showCell ( const AccessibilityHandler ) const
pure virtual

Attempts to scroll the table (if necessary) so that the cell with the given handler is visible.


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