Package logilab :: Package common :: Module table :: Class TableStyle

[frames] | no frames]

# Class TableStyle

source code

    Defines a table's style

Instance Methods

__init__(self, table) | source code

set_size(self, value, col_id) sets the size of the specified col_id to value... | source code

set_size_by_index(self, value, col_index) Allows to set the size according to the column index rather than using the column's id. | source code

set_alignment(self, value, col_id) sets the alignment of the specified col_id to value... | source code

set_alignment_by_index(self, value, col_index) Allows to set the alignment according to the column index rather than using the column's id. | source code

set_unit(self, value, col_id) sets the unit of the specified col_id to value... | source code

set_unit_by_index(self, value, col_index) Allows to set the unit according to the column index rather than using the column's id. | source code

get_size(self, col_id) Returns the size of the specified col_id... | source code

get_size_by_index(self, col_index) Allows to get the size according to the column index rather than using the column's id. | source code

get_alignment(self, col_id) Returns the alignment of the specified col_id... | source code

get_alignment_by_index(self, col_index) Allors to get the alignment according to the column index rather than using the column's id. | source code

get_unit(self, col_id) Returns the unit of the specified col_id... | source code

get_unit_by_index(self, col_index) Allors to get the unit according to the column index rather than using the column's id. | source code

Method Details

### set_size(self, value, col_id)

source code

    sets the size of the specified col_id to value

### set_size_by_index(self, value, col_index)

source code

    Allows to set the size according to the column index rather than
    using the column's id.
    BE CAREFUL : the '0' column is the '__row_column__' one !

### set_alignment(self, value, col_id)

source code

    sets the alignment of the specified col_id to value

### set_alignment_by_index(self, value, col_index)

source code

    Allows to set the alignment according to the column index rather than
    using the column's id.
    BE CAREFUL : the '0' column is the '__row_column__' one !

### set_unit(self, value, col_id)

source code

    sets the unit of the specified col_id to value

### set_unit_by_index(self, value, col_index)

source code

    Allows to set the unit according to the column index rather than
    using the column's id.
    BE CAREFUL :  the '0' column is the '__row_column__' one !
    (Note that in the 'unit' case, you shouldn't have to set a unit
    for the 1st column (the __row__column__ one))

### get_size(self, col_id)

source code

    Returns the size of the specified col_id

### get_size_by_index(self, col_index)

source code

    Allows to get the size  according to the column index rather than
    using the column's id.
    BE CAREFUL : the '0' column is the '__row_column__' one !

### get_alignment(self, col_id)

source code

    Returns the alignment of the specified col_id

### get_alignment_by_index(self, col_index)

source code

    Allors to get the alignment according to the column index rather than
    using the column's id.
    BE CAREFUL : the '0' column is the '__row_column__' one !

### get_unit(self, col_id)

source code

    Returns the unit of the specified col_id

### get_unit_by_index(self, col_index)

source code

    Allors to get the unit according to the column index rather than
    using the column's id.
    BE CAREFUL : the '0' column is the '__row_column__' one !