Atk.Table¶
- Implementations:
 
Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Properties¶
None
Signals¶
Name  | 
Short Description  | 
|---|---|
The “column-deleted” signal is emitted by an object which implements the   | 
|
The “column-inserted” signal is emitted by an object which implements the   | 
|
The “column-reordered” signal is emitted by an object which implements the   | 
|
The “model-changed” signal is emitted by an object which implements the   | 
|
The “row-deleted” signal is emitted by an object which implements the   | 
|
The “row-inserted” signal is emitted by an object which implements the   | 
|
The “row-reordered” signal is emitted by an object which implements the   | 
Fields¶
None
Class Details¶
- class Atk.Table¶
 - Bases:
 - Structure:
 
The ATK interface implemented for UI components which contain tabular or row/column information.
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 anAtk.Tableare typically referred to as “cells”. Those cells should implement the interfaceAtk.TableCell, but #Atk doesn’t require them to be direct children of the currentAtk.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 areAtk.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 ofAtk.Table, and provided some index based methods to request the cells. The practice showed that that forcing madeAtk.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:
 - Returns:
 a
boolrepresenting if the column was successfully added to the selection, or 0 if value does not implement this interface.- Return type:
 
Adds the specified column to the selection.
- add_row_selection(row)[source]¶
 - Parameters:
 - Returns:
 a
boolrepresenting if row was successfully added to selection, or 0 if value does not implement this interface.- Return type:
 
Adds the specified row to the selection.
- get_caption()[source]¶
 - Returns:
 a
Atk.Objectrepresenting the table caption, orNoneif value does not implement this interface.- Return type:
 Atk.ObjectorNone
Gets the caption for the self.
- get_column_at_index(index_)[source]¶
 - Parameters:
 - Returns:
 a
intrepresenting the column at the specified index, or -1 if the table does not implement this method.- Return type:
 
Gets a
intrepresenting the column at the specified index_.Deprecated since version 2.12.
- get_column_description(column)[source]¶
 - Parameters:
 - Returns:
 a
strrepresenting the column description, orNoneif value does not implement this interface.- Return type:
 
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:
 - Returns:
 a
Atk.Objectrepresenting the specified column header, orNoneif value does not implement this interface.- Return type:
 Atk.ObjectorNone
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:
 
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:
 
Gets the number of rows in the table.
- get_row_at_index(index_)[source]¶
 - Parameters:
 - Returns:
 a
intrepresenting the row at the specified index, or -1 if the table does not implement this method.- Return type:
 
Gets a
intrepresenting the row at the specified index_.Deprecated since version ???: since 2.12.
- get_row_description(row)[source]¶
 - Parameters:
 - Returns:
 a
strrepresenting the row description, orNoneif value does not implement this interface.- Return type:
 
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:
 - Returns:
 a
Atk.Objectrepresenting the specified row header, orNoneif value does not implement this interface.- Return type:
 Atk.ObjectorNone
Gets the row header of a specified row in an accessible table.
- get_selected_columns(selected)[source]¶
 - Parameters:
 selected (
int) – aintthat 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:
 
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) – aintthat 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:
 
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:
 
Gets the summary description of the table.
- is_column_selected(column)[source]¶
 - Parameters:
 - Returns:
 a
boolrepresenting if the column is selected, or 0 if value does not implement this interface.- Return type:
 
Gets a boolean value indicating whether the specified column is selected
- is_row_selected(row)[source]¶
 - Parameters:
 - Returns:
 a
boolrepresenting if the row is selected, or 0 if value does not implement this interface.- Return type:
 
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:
 - Returns:
 a
boolrepresenting if the column was successfully removed from the selection, or 0 if value does not implement this interface.- Return type:
 
Adds the specified column to the selection.
- remove_row_selection(row)[source]¶
 - Parameters:
 - Returns:
 a
boolrepresenting if the row was successfully removed from the selection, or 0 if value does not implement this interface.- Return type:
 
Removes the specified row from the selection.
- set_caption(caption)[source]¶
 - Parameters:
 caption (
Atk.Object) – aAtk.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:
 header (
Atk.Object) – anAtk.Table
Sets the specified column header to header.
- set_row_description(row, description)[source]¶
 - Parameters:
 
Sets the description text for the specified row of self.
- set_row_header(row, header)[source]¶
 - Parameters:
 header (
Atk.Object) – anAtk.Table
Sets the specified row header to header.
- set_summary(accessible)[source]¶
 - Parameters:
 accessible (
Atk.Object) – anAtk.Objectrepresenting the summary description to set for self
Sets the summary description of the table.
- do_add_column_selection(column) virtual¶
 - Parameters:
 - Returns:
 a
boolrepresenting if the column was successfully added to the selection, or 0 if value does not implement this interface.- Return type:
 
Adds the specified column to the selection.
- do_add_row_selection(row) virtual¶
 - Parameters:
 - Returns:
 a
boolrepresenting if row was successfully added to selection, or 0 if value does not implement this interface.- Return type:
 
Adds the specified row to the selection.
- do_column_reordered() virtual¶
 
- do_get_caption() virtual¶
 - Returns:
 a
Atk.Objectrepresenting the table caption, orNoneif value does not implement this interface.- Return type:
 Atk.ObjectorNone
Gets the caption for the table.
- do_get_column_at_index(index_) virtual¶
 - Parameters:
 - Returns:
 a
intrepresenting the column at the specified index, or -1 if the table does not implement this method.- Return type:
 
Gets a
intrepresenting the column at the specified index_.Deprecated since version 2.12.
- do_get_column_description(column) virtual¶
 - Parameters:
 - Returns:
 a
strrepresenting the column description, orNoneif value does not implement this interface.- Return type:
 
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:
 - Returns:
 a
Atk.Objectrepresenting the specified column header, orNoneif value does not implement this interface.- Return type:
 Atk.ObjectorNone
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:
 
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:
 
Gets the number of rows in the table.
- do_get_row_at_index(index_) virtual¶
 - Parameters:
 - Returns:
 a
intrepresenting the row at the specified index, or -1 if the table does not implement this method.- Return type:
 
Gets a
intrepresenting the row at the specified index_.Deprecated since version ???: since 2.12.
- do_get_row_description(row) virtual¶
 - Parameters:
 - Returns:
 a
strrepresenting the row description, orNoneif value does not implement this interface.- Return type:
 
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:
 - Returns:
 a
Atk.Objectrepresenting the specified row header, orNoneif value does not implement this interface.- Return type:
 Atk.ObjectorNone
Gets the row header of a specified row in an accessible table.
- do_get_selected_columns(selected) virtual¶
 - Parameters:
 selected (
int) – aintthat 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:
 
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) – aintthat 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:
 
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:
 
Gets the summary description of the table.
- do_is_column_selected(column) virtual¶
 - Parameters:
 - Returns:
 a
boolrepresenting if the column is selected, or 0 if value does not implement this interface.- Return type:
 
Gets a boolean value indicating whether the specified column is selected
- do_is_row_selected(row) virtual¶
 - Parameters:
 - Returns:
 a
boolrepresenting if the row is selected, or 0 if value does not implement this interface.- Return type:
 
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:
 - Returns:
 a
boolrepresenting if the column was successfully removed from the selection, or 0 if value does not implement this interface.- Return type:
 
Adds the specified column to the selection.
- do_remove_row_selection(row) virtual¶
 - Parameters:
 - Returns:
 a
boolrepresenting if the row was successfully removed from the selection, or 0 if value does not implement this interface.- Return type:
 
Removes the specified row from the selection.
- do_row_reordered() virtual¶
 
- do_set_caption(caption) virtual¶
 - Parameters:
 caption (
Atk.Object) – aAtk.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:
 header (
Atk.Object) – anAtk.Table
Sets the specified column header to header.
- 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:
 header (
Atk.Object) – anAtk.Table
Sets the specified row header to header.
- do_set_summary(accessible) virtual¶
 - Parameters:
 accessible (
Atk.Object) – anAtk.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:
 - 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:
 - 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.