69 struct Span {
int begin, num; };
Base class for accessible Components.
An abstract interface which represents a UI element that supports a table interface.
virtual ~AccessibilityTableInterface()=default
Destructor.
virtual int getNumColumns() const =0
Returns the total number of columns 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.
virtual const AccessibilityHandler * getCellHandler(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...
virtual Optional< Span > getRowSpan(const AccessibilityHandler &) const =0
Given the handler of one of the cells in the table, returns the rows covered by that cell,...
virtual const AccessibilityHandler * getRowHandler(int row) const =0
Returns the AccessibilityHandler for a row in the table, or nullptr if there is no row at this index.
virtual const AccessibilityHandler * getHeaderHandler() const =0
Returns the AccessibilityHandler for the header, or nullptr if there is no header.
virtual int getNumRows() const =0
Returns the total number of rows in the table.
virtual Optional< Span > getColumnSpan(const AccessibilityHandler &) const =0
Given the handler of one of the cells in the table, returns the columns covered by that cell,...
A simple span of elements.