1.158 class table_column

Subclass of class table_slice, representing a column of a table object. Unlike class table_row, a column does not actually hold table_cell objects. It is used to store default alignment information on the column, address the column, find cells in the column (which actually uses the table<-row information to find the requested cell) and compute the layout of the column.

Probably the only interesting user-methods are table_column->halign, to et default alignment for this column and table->delete to delete an entire column from a table object.

1.158.1 Instance variables

table_column <- alignment: {left,right,center,reference,stretch}
Default alignment of cells. Refinement of table_slice<-alignment, deleting top/bottom from the value-set. table_column<->halign provides the access to this method.

1.158.2 Send methods

table_column ->compute:
Compute dimensions of the column. Invoked by table->compute to set table_slice<-width and table_slice<-reference, after which table->compute assigns the column a table_slice<-position.
table_column ->halign: {left,right,center,reference,stretch}
Inherits description from: table_column-alignment
table_column ->initialise: [{left,right,center,reference,stretch}]
Initialises an empty table_column object from its alignment. Normally, a table_column is created using table<-column.
table_column ->unlink:
Ensures the table_column object is nicely removed from the table_slice<-table.

1.158.3 Get methods

table_column <-cell: int -> table_cell
Cell at indicated row. Actually fetches the table<-row at the given index and using table_row<-cell to find the cell.
table_column <-halign: -> {left,right,center,reference,stretch}
Inherits description from: table_column-alignment