Atk.Table¶
| Implementations: | |
|---|---|
| Atk.NoOpObject | |
Methods¶
| add_column_selection(column) | |
| add_row_selection(row) | |
| get_caption() | |
| get_column_at_index(index_) | |
| get_column_description(column) | |
| get_column_extent_at(row, column) | |
| get_column_header(column) | |
| get_index_at(row, column) | |
| get_n_columns() | |
| get_n_rows() | |
| get_row_at_index(index_) | |
| get_row_description(row) | |
| get_row_extent_at(row, column) | |
| get_row_header(row) | |
| get_selected_columns(selected) | |
| get_selected_rows(selected) | |
| get_summary() | |
| is_column_selected(column) | |
| is_row_selected(row) | |
| is_selected(row, column) | |
| ref_at(row, column) | |
| remove_column_selection(column) | |
| remove_row_selection(row) | |
| set_caption(caption) | |
| set_column_description(column, description) | |
| set_column_header(column, header) | |
| set_row_description(row, description) | |
| set_row_header(row, header) | |
| set_summary(accessible) | 
Virtual Methods¶
Properties¶
None
Signals¶
| Name | Short Description | 
|---|---|
| column-deleted | The “column-deleted” signal is emitted by an object which implements the Atk.Tableinterface when a column is deleted. | 
| column-inserted | The “column-inserted” signal is emitted by an object which implements the Atk.Tableinterface when a column is inserted. | 
| column-reordered | The “column-reordered” signal is emitted by an object which implements the Atk.Tableinterface when the columns are reordered. | 
| model-changed | The “model-changed” signal is emitted by an object which implements the Atk.Tableinterface when the model displayed by the table changes. | 
| row-deleted | The “row-deleted” signal is emitted by an object which implements the Atk.Tableinterface when a row is deleted. | 
| row-inserted | The “row-inserted” signal is emitted by an object which implements the Atk.Tableinterface when a row is inserted. | 
| row-reordered | The “row-reordered” signal is emitted by an object which implements the Atk.Tableinterface when the rows are reordered. | 
Fields¶
None
Class Details¶
- 
class Atk.Table¶
- Bases: - GObject.GInterface- Structure: - Atk.TableIface- Atk.Tableshould be implemented by components which present elements ordered via rows and columns. It may also be used to present tree-structured information if the nodes of the trees can be said to contain multiple “columns”. Individual elements of an- Atk.Tableare typically referred to as “cells”. Those cells should implement the interface- Atk.TableCell, but #Atk doesn’t require them to be direct children of the current- Atk.Table. They can be grand-children, grand-grand-children etc.- Atk.Tableprovides the API needed to get a individual cell based on the row and column numbers.- Children of - Atk.Tableare frequently “lightweight” objects, that is, they may not have backing widgets in the host UI toolkit. They are therefore often transient.- Since tables are often very complex, - Atk.Tableincludes provision for offering simplified summary information, as well as row and column headers and captions. Headers and captions are- Atk.Objectswhich may implement other interfaces (- Atk.Text,- Atk.Image, etc.) as appropriate.- Atk.Tablesummaries may themselves be (simplified)- Atk.Tables, etc.- Note for implementors: in the past, - Atk.Tablerequired that all the cells should be direct children of- Atk.Table, and provided some index based methods to request the cells. The practice showed that that forcing made- Atk.Tableimplementation complex, and hard to expose other kind of children, like rows or captions. Right now, index-based methods are deprecated.- 
add_column_selection(column)[source]¶
- Parameters: - column ( - int) – a- intrepresenting a column in self- Returns: - a - boolrepresenting if the column was successfully added to the selection, or 0 if value does not implement this interface.- Return type: - bool- Adds the specified column to the selection. 
 - 
add_row_selection(row)[source]¶
- Parameters: - row ( - int) – a- intrepresenting a row in self- Returns: - a - boolrepresenting if row was successfully added to selection, or 0 if value does not implement this interface.- Return type: - bool- Adds the specified row to the selection. 
 - 
get_caption()[source]¶
- Returns: - a - Atk.Objectrepresenting the table caption, or- Noneif value does not implement this interface.- Return type: - Atk.Objector- None- Gets the caption for the self. 
 - 
get_column_at_index(index_)[source]¶
- Parameters: - index ( - int) – a- intrepresenting an index in self- Returns: - a - intrepresenting the column at the specified index, or -1 if the table does not implement this method.- Return type: - int- Gets a - intrepresenting the column at the specified index_.- Deprecated since version 2.12. 
 - 
get_column_description(column)[source]¶
- Parameters: - column ( - int) – a- intrepresenting a column in self- Returns: - a - strrepresenting the column description, or- Noneif value does not implement this interface.- Return type: - str- Gets the description text of the specified column in the table 
 - 
get_column_extent_at(row, column)[source]¶
- Parameters: - Returns: - a - intrepresenting the column extent at specified position, or 0 if value does not implement this interface.- Return type: - Gets the number of columns occupied by the accessible object at the specified row and column in the self. 
 - 
get_column_header(column)[source]¶
- Parameters: - column ( - int) – a- intrepresenting a column in the table- Returns: - a - Atk.Objectrepresenting the specified column header, or- Noneif value does not implement this interface.- Return type: - Atk.Objector- None- Gets the column header of a specified column in an accessible table. 
 - 
get_index_at(row, column)[source]¶
- Parameters: - Returns: - a - intrepresenting the index at specified position. The value -1 is returned if the object at row,column is not a child of table or table does not implement this interface.- Return type: - Gets a - intrepresenting the index at the specified row and column.- Deprecated since version 2.12: Use - Atk.Table.ref_at() in order to get the accessible that represents the cell at (row, column)
 - 
get_n_columns()[source]¶
- Returns: - a - intrepresenting the number of columns, or 0 if value does not implement this interface.- Return type: - int- Gets the number of columns in the table. 
 - 
get_n_rows()[source]¶
- Returns: - a - intrepresenting the number of rows, or 0 if value does not implement this interface.- Return type: - int- Gets the number of rows in the table. 
 - 
get_row_at_index(index_)[source]¶
- Parameters: - index ( - int) – a- intrepresenting an index in self- Returns: - a - intrepresenting the row at the specified index, or -1 if the table does not implement this method.- Return type: - int- Gets a - intrepresenting the row at the specified index_.- Deprecated since version ???: since 2.12. 
 - 
get_row_description(row)[source]¶
- Parameters: - row ( - int) – a- intrepresenting a row in self- Returns: - a - strrepresenting the row description, or- Noneif value does not implement this interface.- Return type: - stror- None- Gets the description text of the specified row in the table 
 - 
get_row_extent_at(row, column)[source]¶
- Parameters: - Returns: - a - intrepresenting the row extent at specified position, or 0 if value does not implement this interface.- Return type: - Gets the number of rows occupied by the accessible object at a specified row and column in the self. 
 - 
get_row_header(row)[source]¶
- Parameters: - row ( - int) – a- intrepresenting a row in the table- Returns: - a - Atk.Objectrepresenting the specified row header, or- Noneif value does not implement this interface.- Return type: - Atk.Objector- None- Gets the row header of a specified row in an accessible table. 
 - 
get_selected_columns(selected)[source]¶
- Parameters: - selected ( - int) – a- intthat is to contain the selected columns numbers- Returns: - a - intrepresenting the number of selected columns, or %0 if value does not implement this interface.- Return type: - int- Gets the selected columns of the table by initializing **selected with the selected column numbers. This array should be freed by the caller. 
 - 
get_selected_rows(selected)[source]¶
- Parameters: - selected ( - int) – a- intthat is to contain the selected row numbers- Returns: - a - intrepresenting the number of selected rows, or zero if value does not implement this interface.- Return type: - int- Gets the selected rows of the table by initializing **selected with the selected row numbers. This array should be freed by the caller. 
 - 
get_summary()[source]¶
- Returns: - a - Atk.Objectrepresenting a summary description of the table, or zero if value does not implement this interface.- Return type: - Atk.Object- Gets the summary description of the table. 
 - 
is_column_selected(column)[source]¶
- Parameters: - column ( - int) – a- intrepresenting a column in self- Returns: - a - boolrepresenting if the column is selected, or 0 if value does not implement this interface.- Return type: - bool- Gets a boolean value indicating whether the specified column is selected 
 - 
is_row_selected(row)[source]¶
- Parameters: - row ( - int) – a- intrepresenting a row in self- Returns: - a - boolrepresenting if the row is selected, or 0 if value does not implement this interface.- Return type: - bool- Gets a boolean value indicating whether the specified row is selected 
 - 
is_selected(row, column)[source]¶
- Parameters: - Returns: - a - boolrepresenting if the cell is selected, or 0 if value does not implement this interface.- Return type: - Gets a boolean value indicating whether the accessible object at the specified row and column is selected 
 - 
ref_at(row, column)[source]¶
- Parameters: - Returns: - an - Atk.Objectrepresenting the referred to accessible- Return type: - Get a reference to the table cell at row, column. This cell should implement the interface - Atk.TableCell
 - 
remove_column_selection(column)[source]¶
- Parameters: - column ( - int) – a- intrepresenting a column in self- Returns: - a - boolrepresenting if the column was successfully removed from the selection, or 0 if value does not implement this interface.- Return type: - bool- Adds the specified column to the selection. 
 - 
remove_row_selection(row)[source]¶
- Parameters: - row ( - int) – a- intrepresenting a row in self- Returns: - a - boolrepresenting if the row was successfully removed from the selection, or 0 if value does not implement this interface.- Return type: - bool- Removes the specified row from the selection. 
 - 
set_caption(caption)[source]¶
- Parameters: - caption ( - Atk.Object) – a- Atk.Objectrepresenting the caption to set for self- Sets the caption for the table. 
 - 
set_column_description(column, description)[source]¶
- Parameters: - Sets the description text for the specified column of the self. 
 - 
set_column_header(column, header)[source]¶
- Parameters: - column (int) – aintrepresenting a column in self
- header (Atk.Object) – anAtk.Table
 - Sets the specified column header to header. 
- column (
 - 
set_row_description(row, description)[source]¶
- Parameters: - Sets the description text for the specified row of self. 
 - 
set_row_header(row, header)[source]¶
- Parameters: - row (int) – aintrepresenting a row in self
- header (Atk.Object) – anAtk.Table
 - Sets the specified row header to header. 
- row (
 - 
set_summary(accessible)[source]¶
- Parameters: - accessible ( - Atk.Object) – an- Atk.Objectrepresenting the summary description to set for self- Sets the summary description of the table. 
 - 
do_add_column_selection(column) virtual¶
- Parameters: - column ( - int) – a- intrepresenting a column in table- Returns: - a - boolrepresenting if the column was successfully added to the selection, or 0 if value does not implement this interface.- Return type: - bool- Adds the specified column to the selection. 
 - 
do_add_row_selection(row) virtual¶
- Parameters: - row ( - int) – a- intrepresenting a row in table- Returns: - a - boolrepresenting if row was successfully added to selection, or 0 if value does not implement this interface.- Return type: - bool- Adds the specified row to the selection. 
 - 
do_column_reordered() virtual¶
 - 
do_get_caption() virtual¶
- Returns: - a - Atk.Objectrepresenting the table caption, or- Noneif value does not implement this interface.- Return type: - Atk.Objector- None- Gets the caption for the table. 
 - 
do_get_column_at_index(index_) virtual¶
- Parameters: - index ( - int) – a- intrepresenting an index in table- Returns: - a - intrepresenting the column at the specified index, or -1 if the table does not implement this method.- Return type: - int- Gets a - intrepresenting the column at the specified index_.- Deprecated since version 2.12. 
 - 
do_get_column_description(column) virtual¶
- Parameters: - column ( - int) – a- intrepresenting a column in table- Returns: - a - strrepresenting the column description, or- Noneif value does not implement this interface.- Return type: - str- Gets the description text of the specified column in the table 
 - 
do_get_column_extent_at(row, column) virtual¶
- Parameters: - Returns: - a - intrepresenting the column extent at specified position, or 0 if value does not implement this interface.- Return type: - Gets the number of columns occupied by the accessible object at the specified row and column in the table. 
 - 
do_get_column_header(column) virtual¶
- Parameters: - column ( - int) – a- intrepresenting a column in the table- Returns: - a - Atk.Objectrepresenting the specified column header, or- Noneif value does not implement this interface.- Return type: - Atk.Objector- None- Gets the column header of a specified column in an accessible table. 
 - 
do_get_index_at(row, column) virtual¶
- Parameters: - Returns: - a - intrepresenting the index at specified position. The value -1 is returned if the object at row,column is not a child of table or table does not implement this interface.- Return type: - Gets a - intrepresenting the index at the specified row and column.- Deprecated since version 2.12: Use - Atk.Table.ref_at() in order to get the accessible that represents the cell at (row, column)
 - 
do_get_n_columns() virtual¶
- Returns: - a - intrepresenting the number of columns, or 0 if value does not implement this interface.- Return type: - int- Gets the number of columns in the table. 
 - 
do_get_n_rows() virtual¶
- Returns: - a - intrepresenting the number of rows, or 0 if value does not implement this interface.- Return type: - int- Gets the number of rows in the table. 
 - 
do_get_row_at_index(index_) virtual¶
- Parameters: - index ( - int) – a- intrepresenting an index in table- Returns: - a - intrepresenting the row at the specified index, or -1 if the table does not implement this method.- Return type: - int- Gets a - intrepresenting the row at the specified index_.- Deprecated since version ???: since 2.12. 
 - 
do_get_row_description(row) virtual¶
- Parameters: - row ( - int) – a- intrepresenting a row in table- Returns: - a - strrepresenting the row description, or- Noneif value does not implement this interface.- Return type: - stror- None- Gets the description text of the specified row in the table 
 - 
do_get_row_extent_at(row, column) virtual¶
- Parameters: - Returns: - a - intrepresenting the row extent at specified position, or 0 if value does not implement this interface.- Return type: - Gets the number of rows occupied by the accessible object at a specified row and column in the table. 
 - 
do_get_row_header(row) virtual¶
- Parameters: - row ( - int) – a- intrepresenting a row in the table- Returns: - a - Atk.Objectrepresenting the specified row header, or- Noneif value does not implement this interface.- Return type: - Atk.Objector- None- Gets the row header of a specified row in an accessible table. 
 - 
do_get_selected_columns(selected) virtual¶
- Parameters: - selected ( - int) – a- intthat is to contain the selected columns numbers- Returns: - a - intrepresenting the number of selected columns, or %0 if value does not implement this interface.- Return type: - int- Gets the selected columns of the table by initializing **selected with the selected column numbers. This array should be freed by the caller. 
 - 
do_get_selected_rows(selected) virtual¶
- Parameters: - selected ( - int) – a- intthat is to contain the selected row numbers- Returns: - a - intrepresenting the number of selected rows, or zero if value does not implement this interface.- Return type: - int- Gets the selected rows of the table by initializing **selected with the selected row numbers. This array should be freed by the caller. 
 - 
do_get_summary() virtual¶
- Returns: - a - Atk.Objectrepresenting a summary description of the table, or zero if value does not implement this interface.- Return type: - Atk.Object- Gets the summary description of the table. 
 - 
do_is_column_selected(column) virtual¶
- Parameters: - column ( - int) – a- intrepresenting a column in table- Returns: - a - boolrepresenting if the column is selected, or 0 if value does not implement this interface.- Return type: - bool- Gets a boolean value indicating whether the specified column is selected 
 - 
do_is_row_selected(row) virtual¶
- Parameters: - row ( - int) – a- intrepresenting a row in table- Returns: - a - boolrepresenting if the row is selected, or 0 if value does not implement this interface.- Return type: - bool- Gets a boolean value indicating whether the specified row is selected 
 - 
do_is_selected(row, column) virtual¶
- Parameters: - Returns: - a - boolrepresenting if the cell is selected, or 0 if value does not implement this interface.- Return type: - Gets a boolean value indicating whether the accessible object at the specified row and column is selected 
 - 
do_model_changed() virtual¶
 - 
do_ref_at(row, column) virtual¶
- Parameters: - Returns: - an - Atk.Objectrepresenting the referred to accessible- Return type: - Get a reference to the table cell at row, column. This cell should implement the interface - Atk.TableCell
 - 
do_remove_column_selection(column) virtual¶
- Parameters: - column ( - int) – a- intrepresenting a column in table- Returns: - a - boolrepresenting if the column was successfully removed from the selection, or 0 if value does not implement this interface.- Return type: - bool- Adds the specified column to the selection. 
 - 
do_remove_row_selection(row) virtual¶
- Parameters: - row ( - int) – a- intrepresenting a row in table- Returns: - a - boolrepresenting if the row was successfully removed from the selection, or 0 if value does not implement this interface.- Return type: - bool- Removes the specified row from the selection. 
 - 
do_row_reordered() virtual¶
 - 
do_set_caption(caption) virtual¶
- Parameters: - caption ( - Atk.Object) – a- Atk.Objectrepresenting the caption to set for table- Sets the caption for the table. 
 - 
do_set_column_description(column, description) virtual¶
- Parameters: - Sets the description text for the specified column of the table. 
 - 
do_set_column_header(column, header) virtual¶
- Parameters: - column (int) – aintrepresenting a column in table
- header (Atk.Object) – anAtk.Table
 - Sets the specified column header to header. 
- column (
 - 
do_set_row_description(row, description) virtual¶
- Parameters: - Sets the description text for the specified row of table. 
 - 
do_set_row_header(row, header) virtual¶
- Parameters: - row (int) – aintrepresenting a row in table
- header (Atk.Object) – anAtk.Table
 - Sets the specified row header to header. 
- row (
 - 
do_set_summary(accessible) virtual¶
- Parameters: - accessible ( - Atk.Object) – an- Atk.Objectrepresenting the summary description to set for table- Sets the summary description of the table. 
 
- 
Signal Details¶
- 
Atk.Table.signals.column_deleted(table, arg1, arg2)¶
- Signal Name: - column-deleted- Flags: - Parameters: - The “column-deleted” signal is emitted by an object which implements the - Atk.Tableinterface when a column is deleted.
- 
Atk.Table.signals.column_inserted(table, arg1, arg2)¶
- Signal Name: - column-inserted- Flags: - Parameters: - The “column-inserted” signal is emitted by an object which implements the - Atk.Tableinterface when a column is inserted.
- 
Atk.Table.signals.column_reordered(table)¶
- Signal Name: - column-reordered- Flags: - RUN_LAST- Parameters: - table ( - Atk.Table) – The object which received the signal- The “column-reordered” signal is emitted by an object which implements the - Atk.Tableinterface when the columns are reordered.
- 
Atk.Table.signals.model_changed(table)¶
- Signal Name: - model-changed- Flags: - RUN_LAST- Parameters: - table ( - Atk.Table) – The object which received the signal- The “model-changed” signal is emitted by an object which implements the - Atk.Tableinterface when the model displayed by the table changes.
- 
Atk.Table.signals.row_deleted(table, arg1, arg2)¶
- Signal Name: - row-deleted- Flags: - Parameters: - The “row-deleted” signal is emitted by an object which implements the - Atk.Tableinterface when a row is deleted.